Flash Ad Blocking

Discussion of features in Mozilla Firefox
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

Check out my userContent.css at http://www.geocities.com/alanjstarr/mozilla/ where I have examples of blocking by keyword and/or size. You can be as specific or as vague as you would like.
sunilgarg
Posts: 170
Joined: November 28th, 2002, 10:08 pm
Contact:

Post by sunilgarg »

alanjstr wrote:Check out my userContent.css at http://www.geocities.com/alanjstarr/mozilla/ where I have examples of blocking by keyword and/or size. You can be as specific or as vague as you would like.


Is there any way to make the browser display a substituted message where the ad would have been? I'm not very familiar with the mozilla css's, but I'm guessing they would go in line: "display: none;"

Thanks.
Firefox user since Phoenix 0.3
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

sunil-online wrote:
alanjstr wrote:Check out my userContent.css at http://www.geocities.com/alanjstarr/mozilla/ where I have examples of blocking by keyword and/or size. You can be as specific or as vague as you would like.


Is there any way to make the browser display a substituted message where the ad would have been? I'm not very familiar with the mozilla css's, but I'm guessing they would go in line: "display: none;"

Thanks.


Via straight CSS? Not that I know of. The display: none makes it as though the placeholder isn't even there. visibility: hidden leaves a box that is ad-shaped. My biggest peeve with Mozilla image blocking is that I wind up with an area that is still a link, but not an ad. And I wind up accidentally clicking on it.
WeSaySo
Posts: 475
Joined: November 5th, 2002, 8:22 am
Location: Earth

Post by WeSaySo »

sunil-online wrote:Is there any way to make the browser display a substituted message where the ad would have been? I'm not very familiar with the mozilla css's, but I'm guessing they would go in line: "display: none;".


You'll need to remove display:none from the blocking rule, since that completely kills the box the image generates in the document flow. Keep only visibility:hidden, and add:

Code: Select all

width: 0; height: 0;


Also, add the following new rule:

Code: Select all

img[some pattern]:before {
  content: "Blocked Image";
  visibility: visible;
}
Ad astra
Post Reply