• 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.
  • Posts

    • The M4 Mac Mini with 16GB of RAM gets a massive discount by Taras Buria If you want to try macOS without spending over a thousand bucks on a MacBook Air or MacBook Pro, the Mac mini is a perfect choice, especially with a new discount that brought the price to a new all-time low—as low as $469, which is a very tempting deal, considering what the M4 Mac mini offers. The M4 Mac mini is the first Mac mini redesign in quite a few years. This tiny desktop computer features two front-facing USB-C ports and a headphone jack, plus an Ethernet port, HDMI, and three Thunderbolt 4 Type-C ports on the back. The computer is powered by a 10-core Apple M4 processor with 10-core graphics, which is one of the most powerful ARM processors for modern computers. You also get 16GB of unified memory and 256GB of fast SSD. Apple claims that this Mac mini is up to 13 times faster than the fastest Intel-based Mac mini. The M4 Mac Mini supports Apple's latest macOS version, like the recently announced macOS 26 Tahoe and all of its features, including Apple Intelligence capabilities. It is also a great choice if you need a versatile desktop PC that can run both Windows on ARM and macOS. Another benefit of this tiny PC is that it draws very little power while offering a powerful processor and graphics. The best part is that it is now 22% off, which saves you $170 off the MSRP ($599). Apple 2024 Mac mini with M4 chip, 16GB RAM, 256GB SSD - $469 | 22% off on Amazon US This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Live activities is pretty cool. For a sports event when the device is on the Lock Screen the score is kept up to date in real time if you want. When in an app a stripped down version appears in the Dynamic Island.
    • I can tell you I don't need one. I use Start11 to make it Win10 styled and add custom game tiles so it's essentially an easier way to launch games than opening Steam but I definitely don't 'need' it and don't use it to launch any applications.
  • Recent Achievements

    • Week One Done
      Wayne Robinson earned a badge
      Week One Done
    • One Month Later
      Karan Khanna earned a badge
      One Month Later
    • Week One Done
      Karan Khanna earned a badge
      Week One Done
    • First Post
      MikeK13 earned a badge
      First Post
    • Week One Done
      OHI Accounting earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      680
    2. 2
      ATLien_0
      276
    3. 3
      Michael Scrip
      208
    4. 4
      +FloatingFatMan
      172
    5. 5
      Steven P.
      143
  • Tell a friend

    Love Neowin? Tell a friend!