/* * Ad Blocking userContent.css by Mike Hokenson * Additional rules by Neil Jenkins and the mozillaZine.org community * * http://www.gozer.org/mozilla/ad_blocking/ * http://www.gozer.org/mozilla/ad_blocking/userContent.css * * Last Update: Thu Jun 9 10:34:14 CDT 2005 * * * CSS: * http://www.w3.org/TR/REC-CSS2/selector.html#q1 * http://www.w3.org/TR/css3-selectors/ * * Sources: * http://www.floppymoose.com * http://texturizer.net/firefox/adblock.html */ /* --- primary filtering ---------------------------------------------------- */ /* general rules */ *[href*="/A="] img, *[src*="/A="], *[href*="/ad-"] img, *[src*="/ad-"], *[href*="/ad."] img, *[src*="/ad."], *[href*="/ad/"] img, *[src*="/ad/"], *[href*="/ad_"] img, *[src*="/ad_"], *[href*="_ad_"] img, *[src*="_ad_"], *[href*="/ads"] img, *[src*="/ads"], *[href*="/adv"] img, *[src*="/adv"], *[href*="/adx"] img, *[src*="/adx"], *[href*="/adbanners/"] img, *[src*="/adbanners/"], /* PBS. sassy, I know */ *[href*="/adlog.pl"] img, *[href*="/adserver."] img, *[src*="/adserver."], *[href*="/jump/"] img, *[src*="/jump/"], *[href*="/redirect"] img, *[href*="/referral/"] img, *[href*="?banner"] img, *[src*="?banner"], *[href*="/banner"] img, *[href*="/click.cgi"] img, *[href*="/clickover"] img, *[href*="/clickthr"] img, *[href*="/click-"] img, *[href*="=click"] img, *[src*="=click"], *[href*="?click"] img, *[src*="?click"], *[href*="click_"] img, *[src*="click_"], *[href*="adclick"] img, *[href*="adfarm"] img, *[src*="adfarm"], *[href*="advert"] img, *[src*="advert"], *[href*="banman.asp"] img, *[src*="banman.asp"], *[href*="bannerman"] img, *[src*="bannerman"], *[href*="promos"] img, *[src*="promos"], *[href*="tryaol"] img, *[src*="-ad-"], *[src*="?ad"], *[src*="/affiliates/"], *[src*="/banner/"], *[src*="/banners/"], *[src*="banners."], *[src*="/creatives/"], *[src*="/marketing/"], /**[src*="/offer"],*/ *[src*="/puffboxes/"], *[src*="/sponsors/"], *[src*="120x60"], *[src*="120x80"], *[src*="140x"], *[src*="468x60"], *[src*="_sponsor_"], *[src*="adimage"], *[src*="adimg"] *[src*="public"][src*="ad"], *[src*="/publicidad/"], *[name*="klipad"], *[src*="klipmart"] { display: none !important } /* site specific */ *[href*=".tribalfusion"] img, *[src*=".tribalfusion"], *[href*="ads.osdn"] img, *[src*="ads.osdn"], *[href*="ar.atwola.com"] img, *[src*="ar.atwola.com"], *[href*="atdmt.com"] img, *[src*="atdmt.com"], *[href*="bluestreak.com"] img, *[src*="bluestreak.com"], *[href*="doubleclick"] img, *[src*="doubleclick"], *[href*="fastclick"] img, *[src*="fastclick"], *[href*="http://216.92.21.16/"] img, *[src*="http://216.92.21.16/"], *[href*="logging.to"] img, *[href*="mediaplex"] img, *[src*="mediaplex"], *[href*="spacetarget"] img, *[src*="spacetarget"], *[href*="spinbox."] img, *[src*="spinbox."], *[href*="transfer.go"] img, *[src*="transfer.go"], *[href*="valueclick"] img, *[src*="valueclick"], *[href*="linkexchange"] img, *[src*="linkexchange"], *[src*="/us.yimg.com/a/ya"], *[src*=".adbutler.de"], *[src*=".nedstatbasic.net"], *[src*=".tradedoubler.com"], *[src*=".travelocity./Sponsor_gifs/"], *[src*="pic.geocities.com/images/"], *[src*="/us.yimg.com/a/ya"], *[src*="a.consumer.net"], *[src*="bannermania.nom.pl"], *[src*="cash4banner.com"], *[src*="crazypopups.com"], *[src*="hit-now.com"], *[src*="hitbox.com"], *[src*="img.thebugs.ws"], *[src*="kinghost.com/ban/"], *[src*="popupad.net/ats/"], *[src*="qkimg.net"], *[src*="qksrv.net"], *[src*="rcm-images.amazon.com"], *[src*="rcm.amazon.com"], *[src*="s1.amazon.com"], *[src*="salon.com/Creatives"], *[src*="servedby.advertising.com"], *[src*="ad.preferences.com"], *[src*="link4ads.com"], *[src*="smartclicks."], *[src*="sexcounter."], *[src*="paycounter."], *[src*="statse.webtrendslive.com"] { display: none !important } /* iframes: by size */ iframe[width="120"][height="600"], iframe[width="125"][height="600"], iframe[width="150"][height="100"], iframe[width="150"][height="600"], iframe[width="160"][height="600"], iframe[width="180"][height="150"], /*iframe[width="200"][height="600"],*/ iframe[width="300"][height="250"], iframe[width="336"][height="280"], iframe[width="468"][height="60"], iframe[width="470"][height="62"], iframe[width="600"][height="120"], iframe[width="728"][height="90"], iframe[width="730"][height="92"] { display: none !important } /*iframe[width="740"][height="90"]*/ /* images: by size */ /*a img[width="88"][height="31"], a img[width="120"][height="240"], a img[width="120"][height="300"], a img[width="120"][height="60"],*/ a img[width="120"][height="600"], /*a img[width="120"][height="800"], a img[width="120"][height="90"], a img[width="125"][height="125"],*/ a img[width="125"][height="600"], /*a img[width="140"][height="350"], a img[width="140"][height="800"],*/ a img[width="150"][height="100"], /*a img[width="150"][height="300"],*/ a img[width="150"][height="600"], /*a img[width="150"][height="70"], a img[width="160"][height="210"], a img[width="160"][height="60"],*/ a img[width="160"][height="600"], /*a img[width="170"][height="500"], a img[width="171"][height="60"], a img[width="180"][height="150"], a img[width="184"][height="90"], a img[width="200"][height="23"], a img[width="227"][height="60"], a img[width="234"][height="60"], a img[width="237"][height="90"], a img[width="250"][height="250"],*/ a img[width="300"][height="250"], /*a img[width="302"][height="252"],*/ a img[width="336"][height="280"], /*a img[width="338"][height="282"], a img[width="348"][height="290"], a img[width="352"][height="311"], a img[width="425"][height="600"], a img[width="468"][height="400"],*/ a img[width="468"][height="60"], a img[width="470"][height="62"], /*a img[width="500"][height="62"], a img[width="548"][height="110"], a img[width="600"][height="30"],*/ a img[width="728"][height="90"], /*a img[width="728"][height="105"], a img[width="728"][height="210"], a img[width="728"][height="420"], a img[width="728"][height="90"], a img[width="729"][height="91"],*/ a img[width="730"][height="92"] { display: none !important } /* flash banners: by size */ embed[type="application/x-shockwave-flash"][width="120"][height="600"], embed[type="application/x-shockwave-flash"][width="125"][height="125"], embed[type="application/x-shockwave-flash"][width="125"][height="600"], embed[type="application/x-shockwave-flash"][width="150"][height="100"], embed[type="application/x-shockwave-flash"][width="150"][height="600"], embed[type="application/x-shockwave-flash"][width="160"][height="600"], embed[type="application/x-shockwave-flash"][width="300"][height="250"], embed[type="application/x-shockwave-flash"][width="336"][height="280"], embed[type="application/x-shockwave-flash"][width="468"][height="60"], embed[type="application/x-shockwave-flash"][width="470"][height="62"], embed[type="application/x-shockwave-flash"][width="728"][height="90"], embed[type="application/x-shockwave-flash"][width="730"][height="92"] { display: none !important } /* flash banners: by name; (cube.)ign.com - ads.ign.com, Yahoo, etc. */ 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*="/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*="/click"], embed[type="application/x-shockwave-flash"][src*="/click"], embed[type="application/x-shockwave-flash"][href*="?click"], embed[type="application/x-shockwave-flash"][src*="?click"], embed[type="application/x-shockwave-flash"][href*="/A="], embed[type="application/x-shockwave-flash"][href*="redirect"], embed[type="application/x-shockwave-flash"][href*="promos"], embed[type="application/x-shockwave-flash"][src*="promos"], embed[type="application/x-shockwave-flash"][src*="banner"], embed[type="application/x-shockwave-flash"][name*="advert"], embed[type="application/x-shockwave-flash"][name*="banner"], embed[type="application/x-shockwave-flash"][src*="yimg.com"][src*="/flash/"] { display: none !important } /* --- miscellaneous pattern matching --------------------------------------- */ /* iframes: by id or source */ iframe#adFrame, iframe#splashFrame, iframe[src*="/ad-"], iframe[src*="/ad."], iframe[src*="/ad/"], iframe[src*="/ad_"], iframe[src*="/ads"], iframe[src*="/adv"], iframe[src*="/adx"], iframe[src*=".ad"], iframe[src*="/adframe"], iframe[src*="googlesyndication"], iframe[src^="/google/box?"], iframe[src*="contentsearch.de.espotting.com"], /* heise.de */ iframe[src*="promos"], iframe[name="bsadframe"], iframe[src*="advert"], iframe[src*="_Banner"], iframe[src*="BET365"], iframe[src*="displayads"], iframe[src*="/click"], iframe[src*="?click"] { display: none !important } /* divs: id, class */ div#mntl, div#quack, div[id*="sponsor"], /* yahoo, general */ div[id*="advert"], div[class*="advert"], /*div[id*="popup"],*/ div#yschsec, div.ovt, div#adstrip, div#dcv_EchangeLay, div#splashLayer, div.showcase A.scLink, /* from floppymoose.com */ div#AD, div[id^="AD"][style^="position:absolute;"], /* lycos */ div#overture, /* nfl.com, general */ div#dropin, div#dwindow, /* dynamicdrive.com */ div#cache, /* asp.flaaten.dk */ div#xad, /* proboards22.com */ div#floatpop, /* lyrics007.com */ div[id^="phpads"] { /* dvd2svcd.doom9.net */ display: none !important } /* by alt tags */ img[alt*="advert"] { display: none !important } /* embed/objects */ object[width="125"][height="300"], object#widgeth { display: none !important } /* tables: misc */ table#RefAd, table[background*="advertising.com"] { display: none !important } span.ad { display: none !important } /* * generic table attributes. these are possibly destructive and should be * traced back and eventually moved to sites.css. */ table table table[width="346"][height="280"], table[border="0"][cellpadding="1"][cellspacing="0"][width="626"][bgcolor="#6699cc"], table[bordercolor="red"][height="225"][cellspacing="0"][cellpadding="0"][width="190"][bgcolor="white"][border="0"], table[width="336"][border="0"][cellspacing="0"][cellpadding="0"][align="right"][style="margin-left: 10px; margin-bottom: 10px;"], *[style*="/ads/"], td[style="border-bottom: 1px solid rgb(204, 204, 204); padding: 7px 3px; background-color: rgb(255, 254, 249);"] { display: none !important } /* forms */ form[action*="doubleclick.net"] { display: none !important } /* --- false positives ------------------------------------------------------ */ a[href*="/admin"] img, /* general admin pages */ a[href*=".adp"] img, /* aol */ a[href*="cart"] img, /* shopping sites */ a[href*="/imgres?imgurl="] img, /* google images */ a[href*="click.mp3"] img, /* mp3 download sites? */ a[href*=":head/"] img, a[href*="adobe"] img, /* new(er) from Neil */ a[href*="/advance"] img, a[href*=".add"] img, img[src*="images.google.com/images?q="], /* yahoo (google images) */ img[src*="/cnn/images/clickability/"], /* cnn.com's "Story Tools" */ img[src$="/banners/com000.jpg"] { /* fark.com's logo */ display: inline !important } /* bestbuy.com */ img[src*="images.bestbuy.com"][src*="promos"] { display: inline !important } /* alltheweb.com: images */ a[href*="click.alltheweb.com/go"] img[src*="fastsearch.net"] { display: inline !important } /* photo galleries? */ embed[type="application/x-shockwave-flash"][src*="gallery"] { display: inline !important } /* suprnova.org */ img[src*="http://ad.suprnova.org/template/images/logo/"], img[src*="http://ad.suprnova.org/template/menu/"] { display: inline !important } /* gamespot.com: screenshots (120x90) */ /*a[href*="screens.html?page="] img[src*="/gamespot/"] { display: inline !important }*/ /* froogle.google.com */ img[src^="/froogle_image?q="] { display: inline !important } /* foxnews.com videos */ div#video object embed[src*="/ads"][src*="foxnews.com"] { display: inline !important } /* -------------------------------------------------------------------------- */ /* * For more examples see http://www.mozilla.org/unix/customizing.html */