Opera URL Filter API

FYI, and because it is related to the Tracking Protection List.

Opera has implemented already for a while a very similar API which gives the ability for extensions to use the native Content Blocker feature of the browser. The API can add or remove URLs to the list. It has essentially two methods:

* opera.extension.urlfilter.block.add()
  Adds a rule to the virtual list of blocked URLs.
* opera.extension.urlfilter.block.remove()
  Removes a rule from the virtual list of blocked URLs.

We published a tutorial [2] on how to use it. Note that the Content Blocker is a generic mechanism for blocking content and is not necessary tied to tracking. For example, people who would like to block images, some types of JS, etc.


[1]: http://www.opera.com/docs/apis/extensions/urlfilter/ 
[2]: http://dev.opera.com/articles/view/site-blocking-with-operas-url-filter-api/


-- 
Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software

Received on Tuesday, 20 September 2011 16:37:12 UTC