• 0

[TIP]Ad Blocking in Mozilla Firebird


Question

got this from http://www.texturizer.net/firebird/

With this tip, you can stop 99% of the ads from even showing

add the following code to your userContent.css file in your profile chrome dir:

removed. see message below

Warning: the code used in this approach could potentially block wanted images or flash movies. However, this happens quite rarely. If you think you've found a site that has "legitimate" images blocked, then please post about it in the Mozilla Firebird General forum forum at MozillaZine and Neil Jenkins will try and update the code and send the new version back to this website.

Edited by MxxCon
Link to comment
https://www.neowin.net/forum/topic/80724-tipad-blocking-in-mozilla-firebird/
Share on other sites

12 answers to this question

Recommended Posts

  • 0

after browsing MozillaZine i found updated userContent.css that has less "false-positive"

this is updated and a bit reorganized file

/* Adblocking css file by Neil Jenkins */

iframe[width="120"][height="600"], a img[width="120"][height="600"],
iframe[width="125"][height="600"], a img[width="125"][height="600"],
iframe[width="150"][height="100"], a img[width="150"][height="100"],
iframe[width="150"][height="600"], a img[width="150"][height="600"],
iframe[width="160"][height="600"], a img[width="160"][height="600"],
iframe[width="180"][height="150"], a img[width="180"][height="150"],
iframe[width="300"][height="250"], a img[width="300"][height="250"],
iframe[width="336"][height="280"], a img[width="336"][height="280"],
iframe[width="468"][height="60"],  a img[width="468"][height="60"],
iframe[width="470"][height="62"],  a img[width="470"][height="62"],
iframe[width="728"][height="90"],  a img[width="728"][height="90"],
iframe[width="730"][height="92"],  a img[width="730"][height="92"],
iframe[width="600"][height="120"], object[width="125"][height="300"],
iframe[src*="/ad"],
iframe[src*=".ad"],
iframe[src*="ad."],
iframe[src*="ads."],
iframe[src*="/A="],
iframe[src*="/click"],
iframe[src*="?banner"],
iframe[src*="=click"],
iframe[src*="spinbox."],
iframe[src*="transfer.go"],
iframe[width*="468"],
A:link[href*="/ad"] img,
A:link[href*=".ad"] img,
A:link[href*="ad."] img,
A:link[href*="ads."] img,
A:link[href*="/A="] img,
A:link[href*="/click"] img,
A:link[href*="?click"] img,
A:link[href*="?banner"] img,
A:link[href*="=click"] img,
A:link[href*="spinbox."] img,
A:link[href*="transfer.go"] img,
A:link[href*="redirect"] img,
img[width="1"][height="1"],
img[width="0"][height="0"],
img[src*="pic.geocities.com/images/"],
table table [src*=".ad"],
table table table[width="346"][height="280"],
embed[type="application/x-shockwave-flash"][href*="redirect"],
embed[type="application/x-shockwave-flash"][src*="/ad"],
embed[type="application/x-shockwave-flash"][href*="/ad"],
embed[type="application/x-shockwave-flash"][src*=".ad"],
embed[type="application/x-shockwave-flash"][href*=".ad"],
embed[type="application/x-shockwave-flash"][width="728"][height="90"],
embed[type="application/x-shockwave-flash"][width="468"][height="60"],
*[src*="offers"],
*[href*="offers"],
*[src*="promos"],
*[href*="promos"],
*[src*="?click"],
*[href*="referral"],
*[src*="/sponsors/"],
*[href*="bluestreak.com"],
*[src*="bluestreak.com"],
*[href*="doubleclick"],
*[src*="doubleclick"],
*[href*="valueclick"],
*[src*="valueclick"],
*[href*="ar.atwola.com"],
*[src*="ar.atwola.com"],
*[href*="atdmt.com"],
*[src*="atdmt.com"],
*[href*=".tribalfusion"],
*[src*=".tribalfusion"],
*[href*="http://216.92.21.16/"],
*[src*="http://216.92.21.16/"],
*[href*="/adx/"],
*[src*="/adx/"],
*[href*="/ads/"],
*[src*="/ads/"],
*[href*="/adserver."],
*[src*="/adserver."],
*[href*="adfarm"],
*[src*="adfarm"],
*[href*="/adlog.pl"],
*[src*="/banner/"],
*[href*="/banner/"],
*[src*="/banners/"],
*[href*="/banners/"],
*[src*="/adview.php"],
*[href*="logging.to"] {
        display: none !important;
}

A:link[href*=".adp"] img,
A:link[href*="threads."] img,
A:link[href*="downloads."] img,
A:link[href*="download."] img,
A:link[href*="click.mp3"] img {
        display: inline !important;
}

blink { text-decoration: none ! important; }

Edited by MxxCon
  • 0

here's latest and greatest update to remove some more 'flase-positives'

/* Adblocking css file by Neil Jenkins */
/*Last edited by neilj on Sun 25th May 2003 1:11pm; */

iframe[width="120"][height="600"], a img[width="120"][height="600"],
iframe[width="125"][height="600"], a img[width="125"][height="600"],
iframe[width="150"][height="100"], a img[width="150"][height="100"],
iframe[width="150"][height="600"], a img[width="150"][height="600"],
iframe[width="160"][height="600"], a img[width="160"][height="600"],
iframe[width="300"][height="250"], a img[width="300"][height="250"],
iframe[width="336"][height="280"], a img[width="336"][height="280"],
iframe[width="468"][height="60"],  a img[width="468"][height="60"],
iframe[width="470"][height="62"],  a img[width="470"][height="62"],
iframe[width="728"][height="90"],  a img[width="728"][height="90"],
iframe[width="730"][height="92"],  a img[width="730"][height="92"],
iframe[width="600"][height="120"], object[width="125"][height="300"],
iframe[width="180"][height="150"],
iframe[src*="/ad"],
iframe[src*=".ad"],
img[src*="/ad-"],
img[src*="/ad."],
img[src*="/ad/"],
img[src*="/ad_"],
img[src*="/ads"],
img[src*="/adv"],
img[src*="/adx"],
img[src*="pic.geocities.com/images/"],
img[alt*="advert"],
a:link[href*="/ad-"] img,
a:link[href*="/ad."] img,
a:link[href*="/ad/"] img,
a:link[href*="/ad_"] img,
a:link[href*="/ads"] img,
a:link[href*="/adv"] img,
a:link[href*="/adx"] img,
a:link[href*=".ad"] img,
a:link[href*="/click.cgi"] img,
a:link[href*="/clickover"] img,
a:link[href*="/clickthr"] img,
a:link[href*="/redirect/"] img,
a:link[href*="/A="] img,
table table [src*=".ad"],
table table table[width="346"][height="280"],
embed[type="application/x-shockwave-flash"][src*="/ad-"],
embed[type="application/x-shockwave-flash"][href*="/ad-"],
embed[type="application/x-shockwave-flash"][src*="/ad."],
embed[type="application/x-shockwave-flash"][href*="/ad."],
embed[type="application/x-shockwave-flash"][src*="/ad/"],
embed[type="application/x-shockwave-flash"][href*="/ad/"],
embed[type="application/x-shockwave-flash"][src*="/ad_"],
embed[type="application/x-shockwave-flash"][href*="/ad_"],
embed[type="application/x-shockwave-flash"][src*="/ads"],
embed[type="application/x-shockwave-flash"][href*="/ads"],
embed[type="application/x-shockwave-flash"][src*="/adv"],
embed[type="application/x-shockwave-flash"][href*="/adv"],
embed[type="application/x-shockwave-flash"][src*="/adx"],
embed[type="application/x-shockwave-flash"][href*="/adx"],
embed[type="application/x-shockwave-flash"][src*=".ad"],
embed[type="application/x-shockwave-flash"][href*=".ad"],
embed[type="application/x-shockwave-flash"][href*="/click"],
embed[type="application/x-shockwave-flash"][href*="redirect"],
embed[type="application/x-shockwave-flash"][href*="/A="],
embed[type="application/x-shockwave-flash"][name*="advert"],
embed[type="application/x-shockwave-flash"][name*="banner"],
embed[type="application/x-shockwave-flash"][width="728"][height="90"],
embed[type="application/x-shockwave-flash"][width="468"][height="60"],
div[id="dropin"],
div[id="dwindow"],
*[src*="120x80"],
*[src*="?ad"],
*[src*="advert"],
*[src*="/click"],
*[src*="/offer"],
*[src*="/puffboxes/"],
*[src*="/sponsors/"],
*[src*="/us.yimg.com/a/ya"],
*[href*="logging.to"],
*[href*="/referral/"],
*[src*="?banner"],
*[href*="?banner"],
*[src*="/banner/"],
*[href*="/banner/"],
*[src*="/banners/"],
*[href*="/banners/"],
*[src*="=click"],
*[href*="=click"],
*[src*="?click"],
*[href*="?click"],
*[src*="promos"],
*[href*="promos"],
*[src*="adfarm"],
*[href*="adfarm"],
*[src*="ar.atwola.com"],
*[href*="ar.atwola.com"],
*[src*="atdmt.com"],
*[href*="atdmt.com"],
*[src*="bluestreak.com"],
*[href*="bluestreak.com"],
*[src*="doubleclick"],
*[href*="doubleclick"],
*[src*="spinbox."],
*[href*="spinbox."],
*[src*="transfer.go"],
*[href*="transfer.go"],
*[src*=".tribalfusion"],
*[href*=".tribalfusion"],
*[src*="valueclick"],
*[href*="valueclick"],
*[src*="http://216.92.21.16/"],
*[href*="http://216.92.21.16/"] {
        display: none !important;
}

a:link[href*="admin"] img,
a:link[href*=".adp"] img,
a:link[href*="click.mp3"] img,
a:link[href*="/imgres?imgurl="] img,
a:link[href*=":head/"] img {
        display: inline !important;
}

  • 0

Updated again :)

/* Adblocking css file by Neil Jenkins */

iframe[width="120"][height="600"], a img[width="120"][height="600"],
iframe[width="125"][height="600"], a img[width="125"][height="600"],
iframe[width="150"][height="100"], a img[width="150"][height="100"],
iframe[width="150"][height="600"], a img[width="150"][height="600"],
iframe[width="160"][height="600"], a img[width="160"][height="600"],
iframe[width="300"][height="250"], a img[width="300"][height="250"],
iframe[width="336"][height="280"], a img[width="336"][height="280"],
iframe[width="468"][height="60"],  a img[width="468"][height="60"],
iframe[width="470"][height="62"],  a img[width="470"][height="62"],
iframe[width="728"][height="90"],  a img[width="728"][height="90"],
iframe[width="730"][height="92"],  a img[width="730"][height="92"],
iframe[width="600"][height="120"], object[width="125"][height="300"],
iframe[width="180"][height="150"],
iframe[src*="/ad"],
iframe[src*=".ad"],
img[src*="/ad-"],
img[src*="/ad."],
img[src*="/ad/"],
img[src*="/ad_"],
img[src*="/ads"],
img[src*="/adv"],
img[src*="/adx"],
img[src*="pic.geocities.com/images/"],
img[alt*="advert"],
a:link[href*="/ad-"] img,
a:link[href*="/ad."] img,
a:link[href*="/ad/"] img,
a:link[href*="/ad_"] img,
a:link[href*="/ads"] img,
a:link[href*="/adv"] img,
a:link[href*="/adx"] img,
a:link[href*=".ad"] img,
a:link[href*="/click.cgi"] img,
a:link[href*="/clickover"] img,
a:link[href*="/clickthr"] img,
a:link[href*="/redirect/"] img,
a:link[href*="/A="] img,
table table [src*=".ad"],
table table table[width="346"][height="280"],
embed[type="application/x-shockwave-flash"][src*="/ad"],
embed[type="application/x-shockwave-flash"][href*="/ad"],
embed[type="application/x-shockwave-flash"][src*=".ad"],
embed[type="application/x-shockwave-flash"][href*=".ad"],
embed[type="application/x-shockwave-flash"][href*="/click"],
embed[type="application/x-shockwave-flash"][href*="redirect"],
embed[type="application/x-shockwave-flash"][href*="/A="],
embed[type="application/x-shockwave-flash"][name*="advert"],
embed[type="application/x-shockwave-flash"][name*="banner"],
embed[type="application/x-shockwave-flash"][width="728"][height="90"],
embed[type="application/x-shockwave-flash"][width="468"][height="60"],
div[id="dropin"],
div[id="dwindow"],
*[src*="120x80"],
*[src*="?ad"],
*[src*="advert"],
*[src*="/click"],
*[src*="/offer"],
*[src*="/puffboxes/"],
*[src*="/sponsors/"],
*[src*="/us.yimg.com/a/ya"],
*[href*="logging.to"],
*[href*="/referral/"],
*[src*="?banner"],
*[href*="?banner"],
*[src*="/banner/"],
*[href*="/banner/"],
*[src*="/banners/"],
*[href*="/banners/"],
*[src*="=click"],
*[href*="=click"],
*[src*="?click"],
*[href*="?click"],
*[src*="promos"],
*[href*="promos"],
*[src*="adfarm"],
*[href*="adfarm"],
*[src*="ar.atwola.com"],
*[href*="ar.atwola.com"],
*[src*="atdmt.com"],
*[href*="atdmt.com"],
*[src*="bluestreak.com"],
*[href*="bluestreak.com"],
*[src*="doubleclick"],
*[href*="doubleclick"],
*[src*="spinbox."],
*[href*="spinbox."],
*[src*="transfer.go"],
*[href*="transfer.go"],
*[src*=".tribalfusion"],
*[href*=".tribalfusion"],
*[src*="valueclick"],
*[href*="valueclick"],
*[src*="http://216.92.21.16/"],
*[href*="http://216.92.21.16/"] {
        display: none !important;
}

a:link[href*="admin"] img,
a:link[href*=".adp"] img,
a:link[href*="click.mp3"] img,
a:link[href*="/imgres?imgurl="] img,
a:link[href*=":head/"] img,
embed[type="application/x-shockwave-flash"][src*="gallery"] {
        display: inline !important;
}

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.