Update index.html
Browse files- index.html +180 -106
index.html
CHANGED
@@ -1,106 +1,180 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="it">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7 |
+
<title>Gam.onl No Ads Premium</title>
|
8 |
+
<style>
|
9 |
+
/* Stili di base */
|
10 |
+
body, html {
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
width: 100%;
|
14 |
+
height: 100%;
|
15 |
+
overflow: hidden;
|
16 |
+
background: #000;
|
17 |
+
font-family: Arial, sans-serif;
|
18 |
+
}
|
19 |
+
#gameContainer {
|
20 |
+
position: fixed;
|
21 |
+
width: 100%;
|
22 |
+
height: 100%;
|
23 |
+
border: none;
|
24 |
+
visibility: hidden;
|
25 |
+
}
|
26 |
+
#loader {
|
27 |
+
position: fixed;
|
28 |
+
top: 50%;
|
29 |
+
left: 50%;
|
30 |
+
transform: translate(-50%, -50%);
|
31 |
+
color: white;
|
32 |
+
font-size: 16px;
|
33 |
+
}
|
34 |
+
/* Overlay che blocca la zona dove compare la ricerca */
|
35 |
+
#searchBlocker {
|
36 |
+
position: fixed;
|
37 |
+
top: 0;
|
38 |
+
left: 0;
|
39 |
+
width: 100%;
|
40 |
+
height: 100px; /* Regola questa altezza in base alle tue necessità */
|
41 |
+
z-index: 10000;
|
42 |
+
background: transparent;
|
43 |
+
}
|
44 |
+
/* Nascondi eventuali pulsanti di ricerca presenti fuori dall'iframe */
|
45 |
+
.menu-search, .gsc-control-cse {
|
46 |
+
display: none !important;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
<script>
|
50 |
+
// Override delle funzioni di ricerca (se presenti)
|
51 |
+
function showhide1() { return false; }
|
52 |
+
function showhide() { return false; }
|
53 |
+
</script>
|
54 |
+
</head>
|
55 |
+
<body>
|
56 |
+
<div id="loader">Caricamento in corso...</div>
|
57 |
+
<!-- Overlay per bloccare la zona della ricerca -->
|
58 |
+
<div id="searchBlocker"></div>
|
59 |
+
|
60 |
+
<!-- Iframe che carica gam.onl -->
|
61 |
+
<iframe id="gameContainer" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-pointer-lock"></iframe>
|
62 |
+
|
63 |
+
<script>
|
64 |
+
(function() {
|
65 |
+
const iframe = document.getElementById('gameContainer');
|
66 |
+
const loader = document.getElementById('loader');
|
67 |
+
|
68 |
+
// Configurazione per il blocco avanzato degli annunci
|
69 |
+
const adBlockConfig = {
|
70 |
+
scripts: [
|
71 |
+
/adservice|adsystem|doubleclick|googletag|adserver|advert|tracking|analytics/gi,
|
72 |
+
/nannyirrationalacquainted|prosecutorremarkablegodforsaken|recordedthereby/gi
|
73 |
+
],
|
74 |
+
elements: [
|
75 |
+
'div[class*="ad"]',
|
76 |
+
'iframe[src*="ads"]',
|
77 |
+
'ins.adsbygoogle',
|
78 |
+
'#___gcse_0',
|
79 |
+
'.gsc-adBlock',
|
80 |
+
'[id*="ad-container"]',
|
81 |
+
'[class*="banner"]'
|
82 |
+
],
|
83 |
+
cssRules: [
|
84 |
+
'{display:none!important;height:0!important;width:0!important;opacity:0!important;visibility:hidden!important}'
|
85 |
+
]
|
86 |
+
};
|
87 |
+
|
88 |
+
// Funzione per rimuovere gli annunci nell'iframe
|
89 |
+
function nuclearAdBlock() {
|
90 |
+
try {
|
91 |
+
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
92 |
+
if (!iframeDoc) return;
|
93 |
+
|
94 |
+
// Rimuove script sospetti
|
95 |
+
iframeDoc.querySelectorAll('script').forEach(script => {
|
96 |
+
if (adBlockConfig.scripts.some(regex => regex.test(script.src))) {
|
97 |
+
script.remove();
|
98 |
+
}
|
99 |
+
});
|
100 |
+
|
101 |
+
// Rimuove elementi indesiderati
|
102 |
+
adBlockConfig.elements.forEach(selector => {
|
103 |
+
iframeDoc.querySelectorAll(selector).forEach(el => el.remove());
|
104 |
+
});
|
105 |
+
|
106 |
+
// Iniezione CSS per nascondere eventuali residui, se non già presente
|
107 |
+
if (!iframeDoc.getElementById('nuclear-adblock-style')) {
|
108 |
+
const style = iframeDoc.createElement('style');
|
109 |
+
style.id = 'nuclear-adblock-style';
|
110 |
+
style.textContent = adBlockConfig.elements.join(',') + adBlockConfig.cssRules.join(',');
|
111 |
+
iframeDoc.head.appendChild(style);
|
112 |
+
}
|
113 |
+
} catch(e) {
|
114 |
+
console.error('Advanced Adblock Error:', e);
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
// Funzione per intercettare la navigazione interna e forzarla a rimanere nell'iframe
|
119 |
+
function handleNavigation() {
|
120 |
+
try {
|
121 |
+
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
122 |
+
if (!iframeDoc) return;
|
123 |
+
|
124 |
+
// Forza tutti i link ad aprirsi nello stesso iframe
|
125 |
+
iframeDoc.querySelectorAll('a').forEach(anchor => {
|
126 |
+
if (anchor.getAttribute('target') === '_blank') {
|
127 |
+
anchor.setAttribute('target', '_self');
|
128 |
+
}
|
129 |
+
});
|
130 |
+
|
131 |
+
// Intercetta il click sui link per ricaricare il contenuto nell'iframe
|
132 |
+
iframeDoc.body.addEventListener('click', function(e) {
|
133 |
+
const anchor = e.target.closest('a');
|
134 |
+
if (anchor && anchor.href) {
|
135 |
+
e.preventDefault();
|
136 |
+
iframe.src = anchor.href;
|
137 |
+
}
|
138 |
+
}, true);
|
139 |
+
} catch(e) {
|
140 |
+
console.warn("handleNavigation error:", e);
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
// Inizializzazione: carica gam.onl nell'iframe
|
145 |
+
iframe.src = 'https://gam.onl';
|
146 |
+
|
147 |
+
iframe.onload = () => {
|
148 |
+
try {
|
149 |
+
nuclearAdBlock();
|
150 |
+
handleNavigation();
|
151 |
+
iframe.style.visibility = 'visible';
|
152 |
+
loader.style.display = 'none';
|
153 |
+
|
154 |
+
// Configura MutationObserver per aggiornare continuamente il blocco annunci e la navigazione
|
155 |
+
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
156 |
+
if (iframeDoc) {
|
157 |
+
const observer = new MutationObserver(() => {
|
158 |
+
nuclearAdBlock();
|
159 |
+
handleNavigation();
|
160 |
+
});
|
161 |
+
observer.observe(iframeDoc.body, { childList: true, subtree: true });
|
162 |
+
}
|
163 |
+
} catch(e) {
|
164 |
+
console.error("Errore durante l'onload:", e);
|
165 |
+
}
|
166 |
+
};
|
167 |
+
|
168 |
+
// Fallback: esegui periodicamente il blocco annunci
|
169 |
+
setInterval(nuclearAdBlock, 3000);
|
170 |
+
|
171 |
+
// Protezione aggiuntiva: blocca eventuali messaggi in ingresso
|
172 |
+
window.addEventListener('message', e => {
|
173 |
+
if(e.data.type === 'ad' || e.data.adContent) {
|
174 |
+
e.stopImmediatePropagation();
|
175 |
+
}
|
176 |
+
});
|
177 |
+
})();
|
178 |
+
</script>
|
179 |
+
</body>
|
180 |
+
</html>
|