File size: 5,902 Bytes
b165882 |
1 2 3 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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Gam.onl No Ads Premium</title>
<style>
/* Stili di base */
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #000;
font-family: Arial, sans-serif;
}
#gameContainer {
position: fixed;
width: 100%;
height: 100%;
border: none;
visibility: hidden;
}
#loader {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 16px;
}
/* Overlay che blocca la zona dove compare la ricerca */
#searchBlocker {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100px; /* Regola questa altezza in base alle tue necessità */
z-index: 10000;
background: transparent;
}
/* Nascondi eventuali pulsanti di ricerca presenti fuori dall'iframe */
.menu-search, .gsc-control-cse {
display: none !important;
}
</style>
<script>
// Override delle funzioni di ricerca (se presenti)
function showhide1() { return false; }
function showhide() { return false; }
</script>
</head>
<body>
<div id="loader">Caricamento in corso...</div>
<!-- Overlay per bloccare la zona della ricerca -->
<div id="searchBlocker"></div>
<!-- Iframe che carica gam.onl -->
<iframe id="gameContainer" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-pointer-lock"></iframe>
<script>
(function() {
const iframe = document.getElementById('gameContainer');
const loader = document.getElementById('loader');
// Configurazione per il blocco avanzato degli annunci
const adBlockConfig = {
scripts: [
/adservice|adsystem|doubleclick|googletag|adserver|advert|tracking|analytics/gi,
/nannyirrationalacquainted|prosecutorremarkablegodforsaken|recordedthereby/gi
],
elements: [
'div[class*="ad"]',
'iframe[src*="ads"]',
'ins.adsbygoogle',
'#___gcse_0',
'.gsc-adBlock',
'[id*="ad-container"]',
'[class*="banner"]'
],
cssRules: [
'{display:none!important;height:0!important;width:0!important;opacity:0!important;visibility:hidden!important}'
]
};
// Funzione per rimuovere gli annunci nell'iframe
function nuclearAdBlock() {
try {
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
if (!iframeDoc) return;
// Rimuove script sospetti
iframeDoc.querySelectorAll('script').forEach(script => {
if (adBlockConfig.scripts.some(regex => regex.test(script.src))) {
script.remove();
}
});
// Rimuove elementi indesiderati
adBlockConfig.elements.forEach(selector => {
iframeDoc.querySelectorAll(selector).forEach(el => el.remove());
});
// Iniezione CSS per nascondere eventuali residui, se non già presente
if (!iframeDoc.getElementById('nuclear-adblock-style')) {
const style = iframeDoc.createElement('style');
style.id = 'nuclear-adblock-style';
style.textContent = adBlockConfig.elements.join(',') + adBlockConfig.cssRules.join(',');
iframeDoc.head.appendChild(style);
}
} catch(e) {
console.error('Advanced Adblock Error:', e);
}
}
// Funzione per intercettare la navigazione interna e forzarla a rimanere nell'iframe
function handleNavigation() {
try {
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
if (!iframeDoc) return;
// Forza tutti i link ad aprirsi nello stesso iframe
iframeDoc.querySelectorAll('a').forEach(anchor => {
if (anchor.getAttribute('target') === '_blank') {
anchor.setAttribute('target', '_self');
}
});
// Intercetta il click sui link per ricaricare il contenuto nell'iframe
iframeDoc.body.addEventListener('click', function(e) {
const anchor = e.target.closest('a');
if (anchor && anchor.href) {
e.preventDefault();
iframe.src = anchor.href;
}
}, true);
} catch(e) {
console.warn("handleNavigation error:", e);
}
}
// Inizializzazione: carica gam.onl nell'iframe
iframe.src = 'https://gam.onl';
iframe.onload = () => {
try {
nuclearAdBlock();
handleNavigation();
iframe.style.visibility = 'visible';
loader.style.display = 'none';
// Configura MutationObserver per aggiornare continuamente il blocco annunci e la navigazione
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
if (iframeDoc) {
const observer = new MutationObserver(() => {
nuclearAdBlock();
handleNavigation();
});
observer.observe(iframeDoc.body, { childList: true, subtree: true });
}
} catch(e) {
console.error("Errore durante l'onload:", e);
}
};
// Fallback: esegui periodicamente il blocco annunci
setInterval(nuclearAdBlock, 3000);
// Protezione aggiuntiva: blocca eventuali messaggi in ingresso
window.addEventListener('message', e => {
if(e.data.type === 'ad' || e.data.adContent) {
e.stopImmediatePropagation();
}
});
})();
</script>
</body>
</html>
|