Description
I’d like to configure uBlock programmatically, from my ~/.conkerorrc.js
, e.g. add some custom filters, update them, etc. Everything that’s accesible through the µBlock
object.
Question: how can I get a grip of the µBlock
object?
E.g.:
-
with NoScript, one can do:
var noscript_service = Cc["@maone.net/noscript-service;1"] .createInstance().wrappedJSObject;
and configure it through noscript_service.doWhateverYouWant(withSomething)
,
-
with mozrepl, one can do:
var mozrepl_service = Cc['@hyperstruct.net/mozlab/mozrepl;1'] .getService(Components.interfaces.nsIMozRepl);
-
etc. …
uBlock defines Cc['@ublock0/content-policy;1']
and Cc['@ublock0/net-channel-event-sinks;1']
, but I don’t know how to get to µBlock
from them.
Settings
- Browser/version: conkeror/1.0.3
- uBlock Origin version: 1.7.4