mark%moxienet.com 1986fe340a 348160 Ad-blocking blocks attachments in Gmail. Patch by Smokey "I Put the QA in al-Qahira" Ardisson <alqahira@mindspring.com>. r=smfr
git-svn-id: svn://10.0.0.236/trunk@207452 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-15 15:50:49 +00:00

274 lines
9.4 KiB
CSS

/*
* CSS rules to hide various ad-related images and Flash files,
* while avoiding too many false hits.
*
* Based on CSS by Joe Francis at http://www.floppymoose.com.
*
*/
a:link[href*="/ad."] img,
a:link[href*="/ads."] img,
a:link[href*="/adclick/"] img,
a:link[href*="?banner"] img,
a:link[href*="=click"] img,
a:link[href*="clickurl="] img,
a:link[href*=".atwola."] img,
a:link[href*="spinbox."] img,
a:link[href*="transfer.go"] img,
a:link[href*="adfarm"] img,
a:link[href*="adserver"] img,
a:link[href*=".falkag."] img,
a:link[href*="rightmedia.net"] img,
a:link[href*="advertising.com"] img,
a:link[href*="mondomedia.com"] img,
a:link[href*="mediaplex.com"] img,
a:link[href*="bluestreak"] img,
a:link[href*="doubleclick"] img,
a:link[href*=".2mdn.net"] img,
a:link[href*="atdmt.com"] img,
a:link[href*="serving-sys.com"] img,
a:link[href*="linksynergy.com"] img,
a:link[href*="qksrv.net"] img,
a:link[href*="tribalfusion"] img,
a:link[href*="valueclick"] img,
a:link[href*=".fastclick.net"] img,
a:link[href*="/rd."] img,
a:link[href*="/0AD"] img,
a:link[href*="trackoffer."] img,
a:link[href*="tracksponsor."] img,
a:link[href*="print2webcorp.com"] img,
a:link[href*="googlesyndication.com"] img,
a:link[href*="adquest3d.com"] img,
a:link[href*="/RealMedia/ads/"] img,
a:link[href*=".jdoqocy.com"] img,
a:link[href*=".zedo.com"] img,
a:link[href*="/banman.asp?"] img,
a:link[href*="adsys.townnews.com"] img,
a:link[href*="ak.m3.net"] img,
a:link[href*=".pointroll.com"] img,
a:link[href*=".mspaceads.com"] img,
a:link[href*="247realmedia.com"] img,
a:link[href*="adserv.quality-channel.de"] img,
a:link[href*="blogads.com"] img,
a:link[href*="interclick.com"] img,
a:link[href*="anad.tacoda.net/ads"] img,
a:link[href*="sw.interpolls.com"] img,
a:link[href*="kliptracker.com"] img,
a:link[href*="klipmart.com"] img,
a:link[href*="gfx.dvlabs.com"] img,
a:link[href*="eyereturn.com"] img,
a:link[href*="save.TV"] img,
embed[src*="/us.yimg.com/a/"],
embed[type="application/x-shockwave-flash"][src*="/ad."],
embed[type="application/x-shockwave-flash"][src*="/ads."],
embed[type="application/x-shockwave-flash"][src*="/ad/"],
embed[type="application/x-shockwave-flash"][src*="/ads/"],
embed[type="application/x-shockwave-flash"][src*=".atwola.com"],
embed[type="application/x-shockwave-flash"][src*="mediaplex.com"],
embed[type="application/x-shockwave-flash"][src*="media.adlegend.com"],
embed[type="application/x-shockwave-flash"][src*="bluestreak"],
embed[type="application/x-shockwave-flash"][src*="adtech.de"],
embed[type="application/x-shockwave-flash"][src*=".falkag."],
embed[type="application/x-shockwave-flash"][src*="adt.m7z.net"],
embed[type="application/x-shockwave-flash"][src*="doubleclick.net"],
embed[type="application/x-shockwave-flash"][src*=".2mdn.net"],
embed[type="application/x-shockwave-flash"][src*=".fastclick.net"],
embed[type="application/x-shockwave-flash"][src*="serving-sys.com"],
embed[type="application/x-shockwave-flash"][src*="atdmt.com"],
embed[type="application/x-shockwave-flash"][src*="linksynergy.com"],
embed[type="application/x-shockwave-flash"][src*="adsrv"],
embed[type="application/x-shockwave-flash"][src*="adserver"],
embed[type="application/x-shockwave-flash"][src*="adclick"],
embed[type="application/x-shockwave-flash"][src*="adsfile."],
embed[type="application/x-shockwave-flash"][src*="adfshow?"],
embed[type="application/x-shockwave-flash"][src*="adimg"],
embed[type="application/x-shockwave-flash"][src*="/webad/"],
embed[type="application/x-shockwave-flash"][src*="?clickthru"],
embed[type="application/x-shockwave-flash"][src*="/RealMedia/ads/"],
embed[type="application/x-shockwave-flash"][src*="servedby.advertising.com"],
embed[type="application/x-shockwave-flash"][src*=".adbutler.de"],
embed[type="application/x-shockwave-flash"][src*="ad.tomshardware.com"],
embed[type="application/x-shockwave-flash"][src*="ad4.sina.com.cn"],
embed[type="application/x-shockwave-flash"][src*=".specificmedia.com"],
embed[type="application/x-shockwave-flash"][src*="cdn.eyewonder.com"],
embed[type="application/x-shockwave-flash"][src*=".tribalfusion.com/media/"],
embed[type="application/x-shockwave-flash"][src*="/flash/promotions/"],
embed[type="application/x-shockwave-flash"][src*=".adtrix.com"],
embed[type="application/x-shockwave-flash"][src*=".netshelter.net"],
embed[type="application/x-shockwave-flash"][src*=".gms1.net"],
embed[type="application/x-shockwave-flash"][src*="ak.m3.net"],
embed[type="application/x-shockwave-flash"][src*="ads.t-online.de"],
embed[type="application/x-shockwave-flash"][src*=".pointroll.com"],
embed[type="application/x-shockwave-flash"][src*="gfx.dvlabs.com"],
embed[type="application/x-shockwave-flash"][src*="gfx.klipmart.com"],
embed[type="application/x-shockwave-flash"][src*="adserv.quality-channel.de"],
embed[type="application/x-shockwave-flash"][src*=".yieldmanager.com"],
object[type="application/x-shockwave-flash"][data*=".yieldmanager.com"],
object[type="application/x-shockwave-flash"][data*="content.valencemedia.com/"],
object[type="application/x-shockwave-flash"][id*="adTower"],
object[type="application/x-shockwave-flash"][id*="728x90"],
object[type="application/x-shockwave-flash"][id*="171x600"],
object[type="application/x-shockwave-flash"][id*="banner"],
object[type="application/x-shockwave-flash"][id*="400x250"],
object[type="application/x-shockwave-flash"][id*="160x600"],
object[type="application/x-shockwave-flash"][id*="adbox"],
object[type="application/x-shockwave-flash"][id*="perma_flash"],
object[type="application/x-shockwave-flash"][id*="skyscraper"],
embed[type="application/x-shockwave-flash"][src*="eyereturn.com"],
embed[type="application/x-shockwave-flash"][src*="media.nyadmcncserve"],
embed[type="application/x-shockwave-flash"][src*="adinterax.com"],
img[src*="googlesyndication.com"],
img[src*="ad.doubleclick.net"],
img[src*="mediaplex.com"],
img[src*="serving-sys.com"],
img[src*="us.yimg.com/a/"],
img[src*="/side_ads/"],
img[src*="/ads/"],
img[src*="/ad."],
img[src*="/ad/"],
img[src*="/adpics/"],
img[src*="/ads."],
img[src*="/adimages/"],
img[src*="adsfile."],
img[src*="/adz/"],
img[src*="Editorial_Promos"],
img[src*="/toms_skyscraper_"],
img[src*="ad4.sina.com.cn"],
img[src*=".ultramercial.com"],
img[src*=".casalemedia.com"],
img[src*=".2mdn.net"],
img[src*=".zedo.com"],
img[src*=".mspaceads.com"],
img[src*=".adbrite.com"],
img[src*="ximages.offeroptimizer.com"],
img[src*="kermit.macnn.com"],
img[src*="media.adlegend.com"],
img[src*=".adtrix.com"],
img[src*=".netshelter.net"],
img[src*=".fastclick.net"],
img[src*=".gms1.net"],
img[src*="ak.m3.net"],
img[src*="atdmt.com"],
img[src*=".falkag."],
img[src*=".pointroll.com"],
img[src*="gfx.dvlabs.com"],
img[id*="km_placer"],
img[src*="247realmedia.com"],
img[src*="specificclick.net"],
img[src*="admarketplace.net"],
img[src*="kliptracker.com"],
img[src*="klipmart.com"],
img[src*="gfx.dvlabs.com"],
img[src*="eyereturn.com"],
img[src*="alphaload.de/img/banner"],
img[src*="www.save.tv/STVAF"],
iframe[src*="/ad."],
iframe[src*="/ads."],
iframe[src*="/jsads/"],
iframe[src*="/ad_data/"],
iframe[src*="?banner"],
iframe[src*="_Banner"],
iframe[src*="BET365"],
iframe[src*="=click"],
iframe[src*="clickurl="],
iframe[src*="ad.doubleclick.net"],
iframe[src*="googlesyndication.com"],
iframe[src*="google/box"],
iframe[src*=".atwola."],
iframe[src*="spinbox."],
iframe[src*="transfer.go"],
iframe[src*="adfarm"],
iframe[src*="adserv"],
iframe[src*=".falkag."],
iframe[src*="adt.m7z.net"],
iframe[src*="rightmedia.net"],
iframe[src*="advertising.com"],
iframe[src*="atdmt.com"],
iframe[src*="linksynergy.com"],
iframe[src*="mondomedia.com"],
iframe[src*="mediaplex.com"],
iframe[src*="media.adlegend.com"],
iframe[src*="bluestreak"],
iframe[src*="doubleclick"],
iframe[src*="casalemedia.com"],
iframe[src*=".2mdn.net"],
iframe[src*="serving-sys.com"],
iframe[src*="qksrv.net"],
iframe[src*="tribalfusion"],
iframe[src*="valueclick"],
iframe[src*=".fastclick.net"],
iframe[src*="/rd."],
iframe[src*="/0ad"],
iframe[src*="trackoffer."],
iframe[src*="tracksponsor."],
iframe[src*="bridgetrack.com"],
iframe[src*=".trafficmp.com"],
iframe[src*=".yieldmanager.com"],
iframe[src*=".mspaceads.com"],
iframe[src*=".adtrix.com"],
iframe[src*=".netshelter.net"],
iframe[src*=".gms1.net"],
iframe[src*="ak.m3.net"],
iframe[src*="adsvr.adknowledge.com"],
iframe[src*=".pointroll.com"],
iframe#google_ads_frame,
iframe[src*="lycos.spiegel.de"],
iframe[src*="matrix.mediavantage.de"],
iframe[src^="http://de"][src*=".myspace.com"],
iframe[src*="adjuggler.com"],
iframe[src*="clickhype.com"],
iframe[src*="euroclick.com"],
iframe[src*="network.realmedia.com"],
iframe[src*="adcom"],
iframe[src*="cpvtext.cpvfeed.com"],
table#overtureLinksWrapper,
table.adbritetable,
td[class*="blogad_"],
td[class*="adstrip"],
div#omniture,
div#cnnPartners,
div#gB1,
div#gB2,
div#gB3,
div.yschspns,
div#yschsec,
div#rh>div#rc,
div#sponsorsAd,
div[id^="ads_"],
div[id^="ad_"],
div[id*="ad440x160"],
div[id*="ad300x100"],
div.werbeblock,
div[id$="_ad"],
div.top_ad_image,
div[class*="_ad_"],
div[id*="swf_728x90"],
div[id*="swf_171x600"],
div[id*="swf_banner"],
div[id*="swf_400"],
div[id*="swf_160x600"],
div[id*="swf_171"],
div[id*="swf_adbox"],
div[id*="swf_perma_flash"],
div[id*="swf_skyscraper"],
div[id*="km_main_div"]
{ display: none ! important }
/* turn some false positives back off */
a:link[href*="download."] img,
a:link[href*="mozilla.org"] img,
a:link[href*="netflix.com/addtoqueue"] img,
a:link[href*="click.mp3"] img,
iframe[src*="mozilla.org"]
{ display: inline ! important }
@-moz-document domain(mail.google.com) {
div[id^="ad_"] {display: block ! important }
}