Adieu la popup de lycos

Contenu du snippet

Voila un code qui enleve facilement la popup de lycos il faut remplacer <html> par cette source

Source / Exemple :


<script language="javascript">

myreg=new RegExp("lycos\.fr","i");
if ( !myreg.test("'"+top.location+"'") ) {
	nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
	rn=nwreg.exec("'"+self.location+"'");
	if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
	else { top.location="http://" + rn[1] + "/" + rn[3]; }
}

if(window == window.top) {
        var address=window.location;
        var s='<html><head><title>'+'</title></head>'+
        '<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
        '<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
		'<frame src="http://ads.multimania.lycos.fr/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=art_culture" name="LycosAdFrame"  marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
        '</frameset>'+
        '</html>';

        document.write(s);      
}
</script>
<html>
<script language=javascript> 
function kill_ad() 
{ 
window.top.document.body.cols = "*,0"; 
setTimeout("kill_ad()",10); 
} 
function setInterval(x,y) 
{ 
return 0; 
} 
window.setTimeout("kill_ad()",10); 
</script>

Conclusion :


et voila adieuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu la pub

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.