ServerX commited on
Commit
b165882
·
verified ·
1 Parent(s): 4521831

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +180 -106
index.html CHANGED
@@ -1,106 +1,180 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Gam.onl No Ads Premium</title>
6
- <style>
7
- body, html {
8
- margin: 0;
9
- padding: 0;
10
- width: 100%;
11
- height: 100%;
12
- overflow: hidden;
13
- background: #000;
14
- }
15
- #gameContainer {
16
- position: fixed;
17
- width: 100%;
18
- height: 100%;
19
- border: none;
20
- visibility: hidden;
21
- }
22
- #loader {
23
- position: fixed;
24
- top: 50%;
25
- left: 50%;
26
- transform: translate(-50%, -50%);
27
- color: white;
28
- font-family: Arial, sans-serif;
29
- z-index: 1000;
30
- }
31
- </style>
32
- </head>
33
- <body>
34
- <div id="loader">Caricamento in corso...</div>
35
- <iframe id="gameContainer"
36
- sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-pointer-lock"
37
- allow="fullscreen">
38
- </iframe>
39
-
40
- <script>
41
- // Contenuto completo di adblock.js inserito qui
42
- document.addEventListener('DOMContentLoaded', () => {
43
- const iframe = document.getElementById('gameContainer');
44
- const loader = document.getElementById('loader');
45
-
46
- const adBlockConfig = {
47
- scripts: [
48
- /adservice|adsystem|doubleclick|googletag|adserver|advert|tracking|analytics/gi,
49
- /nannyirrationalacquainted|prosecutorremarkablegodforsaken|recordedthereby/gi
50
- ],
51
- elements: [
52
- 'div[class*="ad"]',
53
- 'iframe[src*="ads"]',
54
- 'ins.adsbygoogle',
55
- '#___gcse_0',
56
- '.gsc-adBlock',
57
- '[id*="ad-container"]',
58
- '[class*="banner"]',
59
- 'img.menu-search'
60
- ]
61
- };
62
-
63
- function nuclearAdBlock() {
64
- try {
65
- const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
66
-
67
- iframeDoc.querySelectorAll('script').forEach(script => {
68
- if(adBlockConfig.scripts.some(regex => regex.test(script.src))) {
69
- script.remove();
70
- }
71
- });
72
-
73
- adBlockConfig.elements.forEach(selector => {
74
- iframeDoc.querySelectorAll(selector).forEach(el => el.remove());
75
- });
76
-
77
- const style = iframeDoc.createElement('style');
78
- style.textContent = adBlockConfig.elements.join(',') +
79
- '{display:none!important;height:0!important;width:0!important;opacity:0!important;visibility:hidden!important}';
80
- iframeDoc.head.appendChild(style);
81
-
82
- } catch(e) {
83
- console.error('Adblock Error:', e);
84
- }
85
- }
86
-
87
- iframe.src = 'https://gam.onl';
88
-
89
- iframe.onload = () => {
90
- nuclearAdBlock();
91
- iframe.style.visibility = 'visible';
92
- loader.remove();
93
-
94
- new MutationObserver(nuclearAdBlock).observe(
95
- iframe.contentDocument.documentElement,
96
- { childList: true, subtree: true, attributes: true }
97
- );
98
- };
99
-
100
- iframe.onerror = () => {
101
- loader.textContent = 'Errore di caricamento!';
102
- };
103
- });
104
- </script>
105
- </body>
106
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>