Opera Content Blocking

Associate
Joined
8 Mar 2008
Posts
4
Hey

I have found a fancy content blocking option in Opera browser and one thing bothers me:

Is it possible to block items more precisely than 'site.com/dir/'? I mean can i block for example one div or other block level element inside certain site? Of course it wont be totally blocked, but not shown anyway.

On other forum suggested editing those css-sheets for every site. Sounds a bit complicated for me.

With Firefox and Adblock it can be done (something like site.com#div(...) ) but thus I like Opera more it would be nice if this can be handled with it too.
 
Hi nettti. :)

You could get something like Notepad or Notepad++ and write a simple CSS file. Just write the stuff in css as below and then save the file as site.css for example. Then using Firefox and the DOM inspector inspect a page and click on the item you want to block. If it has a name you can then use that to help block it.

For example:
Code:
#q
{display:none !important;}
#search-submit
{display:none !important;} 
#upperbar
{display:none !important;}
#newshead
{display:none !important;}
#newspad
{display:none !important;}
#header
{display:none !important;}

This blocks anything on FileHippo within the elements named. Opera doesn't block stuff as well as Firefox which has the Adblock extension. Then for the site you've made a css file for, press F12 in Opera on that page, Edit Site preferences and Display tab. Choose your css file and OK etc. You should see a cleaner page. :)
 
Opera probably doesn't block ads from the off, you'd have to specify what to block yourself. There is a custom file that you can overwrite Opera's default equivalent that does block more. :)
 
Two things:
Wait for them to design a better site, in the mean time fine a better one...
or
Look at whatever firefox may use and adapt it, is there anything for firefox?
 
Hi nettti. :)

You could get something like Notepad or Notepad++ and write a simple CSS file. Just write the stuff in css as below and then save the file as site.css for example. Then using Firefox and the DOM inspector inspect a page and click on the item you want to block. If it has a name you can then use that to help block it.

...

This blocks anything on FileHippo within the elements named. Opera doesn't block stuff as well as Firefox which has the Adblock extension. Then for the site you've made a css file for, press F12 in Opera on that page, Edit Site preferences and Display tab. Choose your css file and OK etc. You should see a cleaner page. :)

Thanks a lot! This was a very clear and informative guide to do it.

It is also worth mentioning that basic ad blocking can also be done via hosts-file. Then it will block defined addresses for all browsers.
 
Back
Top Bottom