[Resolu] Enlever de la pub(en flash player ) sur un site

Vos requêtes concernant Mozilla Firefox, le navigateur Gecko alternatif, ne trouvèrent point de réponses lorsque vous cherchâtes ? Toute l'équipe Geckozone est prête à vous aider.

Modérateurs : nico@nc, Mori, jpj, myahoo

schartzy
Arias
Messages : 6
Inscription : 07 déc. 2006, 22:11

pub....

Message par schartzy »

Voici l'adresse : http://www.madstef.com/odr/?triv=1

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
Humpfff
Tyrannosaurus Rex
Messages : 2451
Inscription : 05 avr. 2004, 13:23

Message par Humpfff »

Pour le cas madstef, c'est plus délicat car il s'agit d'un morceau de page web. Et puis, quelle idée de vouloir masquer une publicité qui clignote, hein ? Quelle idée, c'est pas bien, bouh ! :lol:
M'enfin, tu peux masquer l'élément concerné en ajoutant les lignes suivantes à ton fichier userContent.js (et relancer FF, pour prendre en compte cette modification)

Code : Tout sélectionner

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix("http://www.madstef.com/") {

#idkey1ban, #idkey2ban {display: none !important}

}
Le fichier userContent.js est un fichier à créer dans le dossier Chrome de ton dossier de profil
Tu peux manipuler ce fichier sans quitter l'interface de Firefox à l'aide de l'extension ChromeEdit.

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
myahoo
Animal mythique
Messages : 8275
Inscription : 02 sept. 2005, 00:13

Message par myahoo »

Effectivement, le souci n'est pas une image, pas une vidéo, pas du Flash, pas du Java, pas de la fenêtre de toit Velux modèle déposé suivi d'un petit R dans un rond... mais juste du JavaScript inclus à la page, que même Adblock(Plus) ne peut pas bloquer :

Code : Tout sélectionner

<script language=javascript>

var phpadsbanner = '';
var navnam = '';
var hpub=250;
var lpub=250;

if (document.layers) {navnam="n4";}
if (!document.all && document.getElementById) {navnam="n6";}
if (document.all) {navnam="ie";}


phpadsbanner += '\n<'+'div id="idkey1ban" style="position:absolute; width:'+(lpub+10)+'px; height:'+(hpub+10)+'px; z-index:98; left: 0px; top: 0px; visibility: hidden"> \n\t';
phpadsbanner += '<'+'table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-style: ridge; border-color: #FFFFFF; border-collapse: collapse">\n\t\t<'+'tr>\n\t\t\t';
phpadsbanner += '<'+'td bordercolor="#CCCCCC" bgcolor="#FFFFCC" align="right" style="padding: 1px 1px 0px">';
phpadsbanner += '<'+'img src="http://www.madstef.com/odr/images/expand.gif" title="Agrandir" width="12" height="12" hspace="3" onClick="phpAds_geopop(\'expand\', \'ban\')">';
phpadsbanner += '<'+'img src="http://www.madstef.com/odr/images/close.gif" title="Fermer" width="12" height="12" onClick="phpAds_geopop(\'close\', \'ban\')">';
phpadsbanner += '<'+'/td>\n\t\t<'+'/tr>\n\t\t<'+'tr>\n\t\t\t<'+'td bgcolor="#FFFFCC" align="center" style="font-family: Arial, helvetica, sans-serif; font-size: 11px; padding: 2px">';
phpadsbanner += '<'+'a href="http://www.madstef.com" title="madstef.com" target="_blank" style="color: #0000ff">Le Ouebb des Produits Remboursés<'+'/a>';

phpadsbanner += '<'+'/td>\n\t\t<'+'/tr>\n\t<'+'/table>\n<'+'/div>\n<'+'div id="idkey2ban" style="position:absolute; width:'+(lpub+10)+'px; height:'+(hpub+10)+'px; z-index:99; left: 0px; top: 0px; visibility: hidden"> \n\t';
phpadsbanner += '<'+'table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-style: outset; border-color: #CCFFFF; border-collapse: collapse">\n\t\t<'+'tr> \n\t\t\t';
phpadsbanner += '<'+'td bordercolor="#CCFFFF" bgcolor="#CCFFFF" align="right" style="padding: 1px 1px 0px">';
phpadsbanner += '<'+'img src="http://www.madstef.com/odr/images/collapse.gif" title="Réduire" width="12" height="12" onClick="phpAds_geopop(\'collapse\', \'ban\')">';
phpadsbanner += '<'+'img src="http://www.madstef.com/odr/images/close.gif" title="Fermer" width="12" height="12" onClick="phpAds_geopop(\'close\', \'ban\')"><'+'/td>\n\t\t<'+'/tr>\n\t\t';
phpadsbanner += '<'+'tr> \n\t\t\t<'+'td>\n\t\t\t\t<'+'table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCFFFF">\n\t\t\t\t\t<'+'tr> \n\t\t\t\t\t\t';
phpadsbanner += '<'+'td align="center">\n\t\t\t\t\t\t\t<'+'table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCFFFF">\n\t\t\t\t\t\t\t\t<'+'tr>\n\t\t\t\t\t\t\t\t\t';
phpadsbanner += '<'+'td width="'+lpub+'" height="'+hpub+'" align="center" valign="middle" style="padding: 2px">';
phpadsbanner += '<'+'IFRAME width="'+lpub+'" height="'+hpub+'" border=0 Marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no SRC="images/pubs/3.php"><'+'/IFRAME>';
phpadsbanner += '<'+'/td>\n\t\t\t\t\t\t\t\t<'+'/tr>\n\t\t\t\t\t\t\t<'+'/table>\n\t\t\t\t\t\t<'+'/td>\n\t\t\t\t\t<'+'/tr>\n\t\t\t\t<'+'/table>\n\t\t\t<'+'/td>\n\t\t<'+'/tr>\n\t<'+'/table>\n<'+'/div>\n';
document.write(phpadsbanner);

function phpAds_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=phpAds_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function placeban()
{
	var c = phpAds_findObj('idkey1ban');
	var o = phpAds_findObj('idkey2ban');

	if (!c || !o)
		return false;

	c = c.style;
	o = o.style;

	if (document.all && !window.innerWidth) { 
		c.pixelLeft = document.body.clientWidth - lpub -28;
		o.pixelLeft = document.body.clientWidth - lpub -28;
		c.pixelTop = 0 + document.body.clientHeight - hpub -28;
		o.pixelTop = 0 + document.body.clientHeight - hpub -28;
	} else {
		c.left = window.innerWidth + window.pageXOffset - lpub -25;
		o.left = window.innerWidth + window.pageXOffset - lpub - 25;
		c.top = 0 + window.pageXOffset - hpub -10;
		o.top = 0 + window.pageXOffset - hpub -10;


	}
}

function phpAds_geopop(what, ad)
{
	var c = phpAds_findObj('idkey1' + ad);
	var o = phpAds_findObj('idkey2' + ad);

	if (!c || !o)
		return false;

	c = c.style;
	o = o.style;

	switch(what)
	{
		case 'collapse':
			c.visibility = 'visible'; 
			o.visibility = 'hidden';

			if (phpAds_timerid[ad])
			{
				window.clearTimeout(phpAds_timerid[ad]);
				phpAds_timerid[ad] = false;
			}

			break;

		case 'expand':
			o.visibility = 'visible';
			c.visibility = 'hidden'; 

		break;

		case 'close':
			c.visibility = 'hidden'; 
			o.visibility = 'hidden';

		break;

		case 'open':
		
			placeban();

			c.visibility = 'hidden';
			o.visibility = 'visible';

			break;
	}

	return false;
}

if (typeof phpAds_timerid == 'undefined')
	phpAds_timerid = new Array();

phpAds_timerid['ban'] = phpAds_geopop('open', 'ban');

function logoit()
	{
	if (document.getElementById)
		{
		w2=document.body.scrollTop;
		w3=document.body.scrollLeft;
		document.getElementById("idkey2ban").style.top=(w2+document.body.clientHeight-hpub-28);
		document.getElementById("idkey1ban").style.top=(w2+document.body.clientHeight-hpub-28);
		document.getElementById("idkey2ban").style.left=(w3+document.body.clientWidth-lpub-28);
		document.getElementById("idkey1ban").style.left=(w3+document.body.clientWidth-lpub-28);
		setTimeout("logoit()",1);
		}
	}

window.onload=logoit
</script>
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
schartzy
Arias
Messages : 6
Inscription : 07 déc. 2006, 22:11

Message par schartzy »

Si je comprends vous lui dites de ne pas afficher la frame dont le nom est idkeylban.

Cela marche est je vous remercie..

Peut on sauver son profil avec les extensions ainsi que ces petites modifications ?

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
Humpfff
Tyrannosaurus Rex
Messages : 2451
Inscription : 05 avr. 2004, 13:23

Message par Humpfff »

Oui, tu as bien compris.
Pour le reste :
Sauvegarder son profil
Comprendre le profil de Firefox
[INFO]Comment je SAUVEGARDE mes PROFILS FIREFOX



Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
schartzy
Arias
Messages : 6
Inscription : 07 déc. 2006, 22:11

Message par schartzy »

je voudrais pouvoir garder mes extensions et cette modification en cas de plante (cela arrive). Un coller à la reinstallation permettant de retrouver la config actuelle.

Est ce que si je copie le répertoire profil cela va fonctionner ?

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
myahoo
Animal mythique
Messages : 8275
Inscription : 02 sept. 2005, 00:13

Message par myahoo »

schartzy a écrit :Est ce que si je copie le répertoire profil cela va fonctionner ?
Logiquement oui (en le zippant ailleurs, par exemple), tout en faisant cela quand Firefox est quitté (sinon tout ne sera pas accessible, y m'semble). Mais si tu as un blocage quelconque, il sera assez certainement possible de récupérer quasiment tout le profil lui-même, en y supprimant ou éditant quelques fichiers :P

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0
Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Google [Bot] et 6 invités