Opera FAQs, Tips, Tricks & Tweaks

Tips for Opera browser since 2005

Opera advanced content blocking

, , , , , , , , ,

You can't block certain elements using Opera built-in content blocker user interface. For example, the social networking buttons in Opera extensions page cannot be blocked by the usual way but can be blocked manually using info panel as shown below.

Social Networking Buttons
Social networking buttons

  1. Click + button in panel selector and enable info panel.
  2. Open info panel and scroll down to scripts/inline frames.
  3. Find the URL (probably off-site) of the script/inline frame, copy and add it to the content blocker manually Alt + P > Advanced > Content > Blocked Content... > Add....
    • For inline frames, you can check the content before adding to the content blocker by opening it.
    • Ignore the content after ? in the URL and replace ? with *. For example, instead of adding the following to block VKontakte button,
      http://vkontakte.ru/js/api/share.js?11
      add the following to the content blocker.
      http://vkontakte.ru/js/api/share.js*
  4. Reload the page and check whether content is blocked.

Opera Info Panel
Info panel

By examining info panel, you can create filters to block Twitter, VKontakte, Google+ and Facebook social networking buttons.

*platform.twitter.com/*/tweet_button*
*vkontakte.ru/*/share.js*
*plusone.google.com/*fastbutton*
*apis.google.com/*/plusone.js
*plus.google.com/*plusone*
*.facebook.com/plugins/*

Paste and go in new tab with middle click on Opera tab barOpera Community Member Statistics for 2011

Comments

Ravindran NavaneethanRavindran Thursday, December 1, 2011 1:22:46 PM

Nice tip. Thanks.

We can do the same thing using ghostery bug blocking list. It covers almost 700 3rd party widget and easy to block.

chuuey Thursday, December 1, 2011 1:36:54 PM

wow, i've been looking for a way to block that stuff.

Mağruf ÇolakoğluZAHEK Thursday, December 1, 2011 1:40:16 PM

Hıım very nice smile

Sintti Thursday, December 1, 2011 2:03:32 PM

It would be really really really helpful if that info panel would indicate which scripts/iframes/stylesheets have already been blocked. I all the time notice that I have multiple rules that do the same thing.

I posted about this on the desktop wish-lish forum a while ago: http://my.opera.com/community/forums/topic.dml?id=1096752

d4rkn1ght Thursday, December 1, 2011 6:26:59 PM

Fantastic! up banana

Tamil Friday, December 2, 2011 8:32:26 AM

Originally posted by Ravindran:

We can do the same thing using ghostery bug blocking list.

yes but it won't block everything.

Originally posted by Sintti:

It would be really really really helpful if that info panel would indicate which scripts/iframes/stylesheets have already been blocked.

http://files.myopera.com/Tamil/Smilies/Yes.gif -

Originally posted by d4rkn1ght:

banana

http://files.myopera.com/Tamil/Smilies/Drool.gif -

Cutting Spoonhellspork Friday, December 2, 2011 7:27:26 PM

For anyone wondering if they have multiple rules that do the same thing:

R-click, "Block Content", "Details"

There should be a list of things that are blocked on the current page, if rules overlap their addresses should be next to each other in the list (making them easier to spot).

It would be nice if the Info panel got an update with more tools, for that matter if the file:// rendering system had sorting options.

Guscitizenofgaya Saturday, December 3, 2011 10:23:47 AM

Thanks, Tamil! Now I can uninstall Ghostery!

Jimtoyotabedzrock Thursday, December 8, 2011 11:40:28 PM

Thats how I always use the Opera content blocker.

TerDale Tuesday, December 20, 2011 5:08:42 PM

Thanks Tamil, I never figured out that I could use the Info panel to get rid of these pesky scripts or inline frames, I was looking at the page source instead p
You've definitely helped to make my future more comfortable wink

night wolf Wednesday, December 21, 2011 8:35:11 PM

Happy Yalda Night wink

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies