ServerX commited on
Commit
9ba24f8
·
verified ·
1 Parent(s): 66a2c44

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +106 -0
index.html ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>