W3C home > Mailing lists > Public > public-tracking@w3.org > September 2011

Opera URL Filter API

From: Karl Dubost <karld@opera.com>
Date: Tue, 20 Sep 2011 12:36:40 -0400
Message-Id: <26EBD7C9-74EC-4EFC-B2CB-501AA88869C7@opera.com>
To: public-tracking@w3.org
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

This archive was generated by hypermail 2.3.1 : Friday, 21 June 2013 10:11:21 UTC