[thelist] Ad 'scraper'

Raymond Camden rcamden at allaire.com
Wed Jan 10 17:37:07 CST 2001


A friend of mine came up with a cute little trick some of you may find
interesting. IE allows you to apply a style sheet to every site you visit.
He created a style sheet that hides ads. It works by hiding any graphic that
has one of the common sizes advertisements use. I've been running it for a
while now and haven't noticed any problems yet. You will get a white space
where the ad is, but it's better than nothing.

Plus, the graphic actually _does_ download to your system, so your not
screwing the web site out of ad revenue. (Well, as long as they get paid by
impressions. :)

Style sheet begins here...
/*
	Filename         : hideads.css
	Last modified by : Joel Mueller
	Created          : Wednesday, January 03, 2001 11:02:17 AM
	Last Updated     : Wednesday, January 03, 2001 1:00:43 PM
	Comments         :

	This stylesheet works in IE 5.0 and above, and will hide all images
	and IFRAMEs that meet the standard sizes for web banner ads.  This will
	block most ads from being viewed (but they are still downloaded to your
computer).
	However, it will also block innocent images that happen to be of one of the
following
	sizes.  If that happens, you can turn off this stylesheet to see the image.

	Standard ad sizes covered:
	120x240, 120x60, 120x90, 234x60, 468x60, 125x125, 392x72, 154x104

	Installation:
	Put this file anywhere on your hard drive (I use c:\winnt\web\).
	In IE, click Tools, then Internet Options.  Click the Accessibility button.
	Under "User Style Sheet" select the location where you saved this file.
*/

IMG
{
	visibility: expression(((this.clientHeight == 60 && (this.clientWidth ==
468 || this.clientWidth == 234 || this.clientWidth == 120)) ||
(this.clientWidth == 120 && (this.clientHeight == 240 || this.clientHeight
== 90)) || (this.clientWidth == 125 && this.clientHeight == 125) ||
(this.clientWidth == 392 && this.clientHeight == 72) || (this.clientWidth ==
154 && this.clientHeight == 104)) ? "hidden" : "");
}

IFRAME
{
	visibility: expression(((this.clientHeight == 60 && (this.clientWidth ==
468 || this.clientWidth == 234 || this.clientWidth == 120)) ||
(this.clientWidth == 120 && (this.clientHeight == 240 || this.clientHeight
== 90)) || (this.clientWidth == 125 && this.clientHeight == 125) ||
(this.clientWidth == 392 && this.clientHeight == 72) || (this.clientWidth ==
154 && this.clientHeight == 104)) ? "hidden" : "");
}





More information about the thelist mailing list