site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·News Posting ·Software FAQ ·PC Hell ·2Kmaro's Site
AuthorAll Replies


Lanik
Lab-nik
Premium,ExMod 2002-03
join:2001-06-25
Bay Area

reply to Caddyroger

Re: [Help] firebird fonts

Thats only a fraction of what can be configured. If you're tired of seeing the ads on every page you visit put this code in your UserContent.css:

/*-------*/
/* Misc. */
/*-------*/

/* Change cursor for links that open in new window
* :link[target="_blank"], :visited[target="_blank"], :link[target="_new"], :visited[targe
*t="_new"] {cursor: crosshair;}
*/

/* Change cursor for JavaScript links
* a[href^="javascript:"] {cursor: move;}
*/

/* Make forms look nicer */
input,textarea {border: 1px inset ThreeDFace;} select {border-width: 1px !important;}
input[type="radio"], input[type="checkbox"] {border: 1px inset ThreeDFace ! important;}
button, input[type="reset"], input[type="button"], input[type="submit"] {padding: 1px 0 1p
*x 0;border: 1px outset ButtonFace;}

/*-------------*/
/* Ad-blocking */
/*-------------*/

/* 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*="/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*="/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*="/Ads/"],
*[src*="/affiliates/"],
*[src*="/banner/"],
*[src*="/banners/"],
*[src*="banners."],
*[src*="/creatives/"],
*[src*="/marketing/"],
*[src*="/offer"],
*[src*="/countclicks"],
*[src*="/sponsors/"],
*[src*="120x80"],
*[src*="140x"],
*[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*="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"],
*[src*=".a.yimg.com/"],
*[src*=".a1.yimg.com/"],
*[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*="/oneclick"],
*[src*="rcm.amazon.com"],
*[src*="salon.com/Creatives"],
*[src*="servedby.advertising.com"],
*[src*="sexcounter."],
*[src*="statse.webtrendslive.com"] { display: none !important }

/* iframes: misc */
iframe[src*=".ad"], iframe[src*="/ad"], iframe[src*="advert"],
iframe[src*="/click"], iframe[name="bsadframe"], /* deviantart.com */
iframe[id="adFrame"], iframe[id="splashFrame"] { 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="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 }

/* images: by size */
img[width="120"][height="240"],
img[width="120"][height="300"],
img[width="120"][height="60"],
img[width="120"][height="600"],
img[width="120"][height="800"],
img[width="120"][height="90"],
img[width="125"][height="125"],
img[width="140"][height="350"],
img[width="140"][height="800"],
img[width="150"][height="300"],
img[width="150"][height="600"],
img[width="150"][height="70"],
img[width="160"][height="210"],
img[width="160"][height="60"],
img[width="160"][height="600"],
img[width="170"][height="500"],
img[width="171"][height="60"],
img[width="180"][height="150"],
img[width="184"][height="90"],
img[width="200"][height="23"],
img[width="227"][height="60"],
img[width="234"][height="60"],
img[width="237"][height="90"],
img[width="250"][height="250"],
img[width="300"][height="250"],
img[width="302"][height="252"],
img[width="336"][height="280"],
img[width="338"][height="282"],
img[width="348"][height="290"],
img[width="352"][height="311"],
img[width="425"][height="600"],
img[width="468"][height="400"],
img[width="468"][height="60"],
img[width="500"][height="62"],
img[width="548"][height="110"],
img[width="600"][height="30"],
img[width="728"][height="105"],
img[width="728"][height="210"],
img[width="728"][height="420"],
img[width="728"][height="90"],
img[width="729"][height="91"],
img[width="88"][height="31"] { display: none !important }

/* by alt tags */
img[alt*="advert"] { display: none !important }

/* fark.com: annoying animated gif */
img[src*="sportsbybrooks.com/farkbutton.gif"] { display: none !important }

/* imdb.com */
img[src*="i.imdb.com/Vpics/"],
img[src*="i.imdb.com/Photos/CMSIcons"],
img[src*="i.imdb.com/Icons/apix/"],
img[src*="i.imdb.com/Icons/kpix/"],
img[src*="i.imdb.com/apix/"] { display: none !important }

/* freshmeat: fmII image next to each project */
img[src*="freshmeat.net/button.gif"] { display: none !important }

/* nvnews.net: Amazon International banner */
img[src$="images/logos/amazon_international.gif"] { display: none !important }

/* planetquake.com/6thfloor: annoying rifle-shot animated gif */
img[src$="grfx/6thcam.gif"] { visibility: hidden !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="130"][height="180"],
embed[type="application/x-shockwave-flash"][width="300"][height="250"],
embed[type="application/x-shockwave-flash"][width="460"][height="70"],
embed[type="application/x-shockwave-flash"][width="468"][height="60"],
embed[type="application/x-shockwave-flash"][width="728"][height="90"] {
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"][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"][name*="advert"],
embed[type="application/x-shockwave-flash"][name*="banner"],
embed[type="application/x-shockwave-flash"][src*="yimg.com"][src*="/flash/"] {
display: none !important
}

/* tables: misc */
/*table table [src*=".ad"],*/ table[id="RefAd"] { display: none !important }

/*
* Begin generic table attributes
* NOTE: These rules could be highly destructive, use at your own risk.
*/

/* Neil / other sources */
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"][bgco
*lor="white"][border="0"],
table[width="336"][border="0"][cellspacing="0"][cellpadding="0"][align="right"][style="mar
*gin-left: 10px; margin-bottom: 10px;"],
td[style="border-bottom: 1px solid rgb(204, 204, 204); padding: 7px 3px; background-color:
* rgb(255, 254, 249);"],

/* google.com: sponsored links: top/side */
table[border="0"][cellpadding="3"][cellspacing="0"][height="40"][width="100%"],
table[border="0"][cellpadding="0"][cellspacing="4"][align="right"][width="20%"],

/* geocities.com: floating banner table thingies. gets most, but not all */
table[border="2"] td[valign="top"][bgcolor="#ffffff"] table[width="138"] {
display: none !important
}

/*
* End generic table attributes
*/

/* misc from floppymoose.com
* div[id="splashLayer"], div.showcase A.scLink { display: none !important }
*/

/* imdb.com: AmericanSingles.com
* table[cellspacing="0"][width="160"][height="329"][bgcolor="#000000"],
* form[name="frmLargeForm"], form[action*="click_lx.cgi"] {
* display: none !important
* }
*/

/* freshmeat: text banners; used DOM Inspector for "expanded" style property
* div[style="border: 1px solid rgb(221, 221, 221); padding: 5px; background-color: rgb(255
*, 255, 255);"] { display: none !important }
*/

/* Hide all flash? */
/* embed[type="application/x-shockwave-flash"] { display: none !important } */

/* Neil / other sources */
* object[width="125"][height="300"], object[id="widgeth"] {
* display: none !important
* }
*/

/* yahoo.com: personals, soapcity ad/forms */
form[action^="http://rd.yahoo.com/"],
form[action=""][name$="SoapCity"],
form[action=""][name^="728x90"],
form[action=""][name^="300x250"] { display: none !important }

/* tek-tips.com (dynamicdrive.com)
* div[id="dropin"], div[id="dwindow"] { display: none !important }
*/

/* lycos.(fr|com?): top of the page */
div[id="AD"], div[id^="AD"][style^="position:absolute;"] {
display: none !important
}

/* yahoo.com, alltheweb.com, others/general */
div[id="mntl"], div[id*="sponsor"], div[id="quack"],
div[id*="advert"], /* div[id*="banner"], */ div[id*="popup"] {
display: none !important
}

/*
* Begin cnn.com
*/

/* left side banner */
td[class="cnnNavAd"],

/* text ad */
td span[class="aoltextad"],

/* right side banner area */
table[width="770"][border="0"] tr[valign="top"] td[width="160"],

/* "lawyer locator" */
form[method="get"][action*="martindale"][name="MDH"] {
display: none !important
}

/*
* End cnn.com
*/

/* --- Blacklisted links ---------------------------------------------------- */

a:link[href*="goatse.cx/"] {
text-decoration: line-through !important;
color: black;
}

/* --- Override filtering for false positives ------------------------------- */

a:link[href*="/admin"] img,/* general admin pages */
a:link[href*=".adp"] img,/* aol */
a:link[href*="cart"] img,/* shopping sites */
a:link[href*="/imgres?imgurl="] img,/* google images */
a:link[href*="click.mp3"] img,/* mp3 download sites? */
a:link[href*=":head/"] img,/* Neil / other sources */
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
}

/* alltheweb.com: images */
a:link[href*="click.alltheweb.com/go"] img[src*="fastsearch.net"] {
display: inline !important
}

/* Neil / other sources */
embed[type="application/x-shockwave-flash"][src*="gallery"] {
display: inline !important
}

/* NetTracker - sane.com (logan specific) */
a:link[href*="http://nettracker."] img { display: inline !important }

/* imdb.com: trailer (type) images: http://i.imdb.com/(wmf|real|qt).gif */
a:link img[src^="http://i.imdb.com/"][src$=".gif"][width="88"][height="31"] {
display: inline !important
}

(*) WARNING 6 long line(s) split

--
A slave to corporate America.


Shorty
Premium
join:2001-01-19
Vermont, USA

said by Lanik:
If you're tired of seeing the ads on every page you visit put this code in your UserContent.css:


OOOh, that works nice.

I've been trying out AdMuncher and like it a lot, but this setup, combined with blocking popups, seems to do pretty much the same thing without having to run another program.

I'm definitely going to give this config a test drive. Gotta see how she handles the corners.


Lanik
Lab-nik
Premium,ExMod 2002-03
join:2001-06-25
Bay Area

I hardly see any adds what so ever and I don't even have any add remover software running right now.
--
A slave to corporate America.



bcool
Premium
join:2000-08-25
The Ozarks

1 edit

reply to Lanik
Lanik, first, the line that covers "make forms look nicer" immediately took care of a problem I had with certain XP visual styles and forms buttons on a web page. Nice!

Question: right now I'm using this in my UserContent.css

Block Ads v.2003-12-09 by Neil Jenkins
Portions of this ruleset are derived from the ad blocking css by Joe Francis at: »www.floppymoose.com/
Some code also contributed by Mike Hokenson:
»www.gozer.org/mozilla/ad_blocking
As relates only to ad blocking, there's so much script here to compare with the stuff you just posted. I'm just not sure which is better or if it would even make a noticeable difference which one I use. I don't suppose I should use both - the code you posted here and Neil Jenkins's code together. Redundant or conflicts?


Lanik
Lab-nik
Premium,ExMod 2002-03
join:2001-06-25
Bay Area

There are lots of versions of the above code floating around they generally do exactly the same thing. Some do it to more extent then others. The one I posted is slightly separated into sections Neil Jenkins's code is all together. He just covers all the basics, then people add things as they see fit based on his code.
--
A slave to corporate America.



bcool
Premium
join:2000-08-25
The Ozarks

said by Lanik:
There are lots of versions of the above code floating around they generally do exactly the same thing. Some do it to more extent then others. The one I posted is slightly separated into sections Neil Jenkins's code is all together. He just covers all the basics, then people add things as they see fit based on his code.

Thank you! By the way, is there a central location where one could go to keep up on improvements to these ad blocking features for the UserContent.css? For now, I'm trying out the code you posted. The ad blocking continues to work just fine - no immediate difference that I see. I sure appreciated the addition though of /* Make forms look nicer */.

--
"in flagrante delicto"


Lanik
Lab-nik
Premium,ExMod 2002-03
join:2001-06-25
Bay Area

said by bcool:
By the way, is there a central location where one could go to keep up on improvements to these ad blocking features for the UserContent.css?
There are many sites maintained by FB enthusiasts, too many to mention I got most of my tips and tricks by going to FB forums and clicking on some of the peoples signatures, some have some cool configs. Just be careful not all of it you'll find useful.

Good luck and have fun.
--
A slave to corporate America.

Monday, 04-Jun 15:25:01 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics