How to collaps hiden ads?


Recommended Posts

i just reinstal XP without backup.

and i used to hav the empty space left by filtered ads collapsed,

pls remind me how to do that.

Edit: Fixed, it's done by a CSS which can be specified in preference.

Edited by serafins
Link to comment
Share on other sites

Can someone explain what the dude means?  Empty space left by filtered ads collapsed?

586547959[/snapback]

i assume it means ...

...Firefox would block a ad but just leave it as a white space, but he wants the white space removed, therefor allowing more space for content.

Link to comment
Share on other sites

Is there a similar way to do this...

Firefox would block a ad but just leave it as a white space, but he wants the white space removed, therefor allowing more space for content. Adblock extension for Firefox does this quite well.

... in Opera 8.50? Adblock is possibly one of the best extensions for Firefox, and I'm hoping someone would tell me how I can mimic this using Opera without installing some seperate 3rd party program. :cool:

Link to comment
Share on other sites

Is there a similar way to do this...

... in Opera 8.50? Adblock is possibly one of the best extensions for Firefox, and I'm hoping someone would tell me how I can mimic this using Opera without installing some seperate 3rd party program. :cool:

586552496[/snapback]

Isn't adblock a 3rd party program?

You can use a combination of filter.ini and the adblock.css to remove lots of ad's. You can also add an entry to the right click menu to automatically add new entries into the filter.ini. IIRC there is also a way of adding entries to the adblock.css too.

Link to comment
Share on other sites

here's my user.css file - it collapses most ads and also replaces any flash with a black box saying flash in it (clicking th ebox loads the flash image). put it anywhere on your computer, go to tools-prefs-advanced-content, click style options, point to the user.css file under "my style sheet", set default mode to "user" and put a checkmark under user mode to use "my style sheet". you're all set.

user.css

Link to comment
Share on other sites

  • 1 year later...
here's my user.css file - it collapses most ads and also replaces any flash with a black box saying flash in it (clicking th ebox loads the flash image). put it anywhere on your computer, go to tools-prefs-advanced-content, click style options, point to the user.css file under "my style sheet", set default mode to "user" and put a checkmark under user mode to use "my style sheet". you're all set.

can u post just the code for collapsing?

Link to comment
Share on other sites

If it is a CSS that is responsible for collapsing the elements, then I would think it would consist something of:

#ad1, .ad2, .ad3, #ad4, etc {
display: none;
}

It is the display: none; part that causes the element to vanish from the layout. If you want to preserve the structure of the document, i.e. not collapse, then you'd use display: hidden;

Link to comment
Share on other sites

I have a problem: Whenever I visit GMail, it does not load. I have to unload the CSS file in order for it to display properly, otherwise, I just get a white screen. Could it be possible to make the Flash box clickable, for example, on YouTube.

Link to comment
Share on other sites

Check this page out. You will have to download to javascript files. I've been using these for a while.

http://my.opera.com/Lee_Harvey/blog/show.dml/50754

I've tried putting those two scripts in my own userjs folder and enabled javascript, but I still get big white unused space :(

example: when I look at http://dogan.deviantart.com/ , I still see a big white rectangle where the ad is supposed to be.

Link to comment
Share on other sites

I've tried putting those two scripts in my own userjs folder and enabled javascript, but I still get big white unused space :(

example: when I look at http://dogan.deviantart.com/ , I still see a big white rectangle where the ad is supposed to be.

On that DA page, right click on a blank space on that page. From the context menu, select "Edit site preferences", from the dialog that pops next, select the "Display" tab. Make sure that "Enable inline frames" is unckeched. The result will be instant.

2nd edit:

Well, thinking about it, the javascript files work as they should. The solution above will work, try it and you wont see that white space... but thats not the way ads should be blocked. Some sites use inline frames to put useful info in them, not just ads.

Looking at that DA source, you can see that contents of that inline frame are from h**p://devart.adbureau.net/hserver/blablabla

Here's how you need to do it:

- On Opera menubar, click on Tools -> Advanced -> Blocked content.

- Add http://*.adbureau.net/* to the list.

- Then delete private data (it will clear Opera cache).

- Go to the DA page again.

- Tadaa

BTW the option "Enable inline frames", leave it checked.

Edited by P1R4T3
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.