Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'blocking img ads' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
blocking img ads
Authored by: mkoz on Nov 27, '02 02:50:08PM

i took a guess and added the following to the userContent.css file to try and block image ads.

img[width="468"][height="60"] {
display: none !important;
visibility: hidden !important;
}
img[width="125"][height="125"] {
display: none !important;
visibility: hidden !important;
}

and it seems to work. the only thing i noticed was that the images still show up if the height and width are not set in the img tag. so it doesn't matter what size the image really is as long as the height and width attributes match.

does anyone know of a way to have a gray box or something drawn in place of the image, or put another image there? so i could see that and image was removed/blocked.



[ Reply to This | # ]