welcome: please sign in
location: uBlock

uBlock

uBlock is an extension that provides efficient ad-blocking and content filtering.

Status

Working, both uBlock and uBlock Origin.

Installation

uBlock Origin

1. Download uBlock0.firefox.xpi from the project's releases page.

2. Install via the extension manager's "Install Add-on From File" (no need to edit install.rdf, Conkeror is supported out of the box).

uBlock

1. Download uBlock.firefox.xpi from the project's releases page.

2. Follow the instructions described here, slightly modifying the Conkeror stub to look:

<!-- Conkeror -->
<targetApplication>
  <Description>
    <id>{a79fe89b-6662-4ff4-8e88-09950ad4dfde}</id>
    <minVersion>0.1</minVersion>
    <maxVersion>9.9</maxVersion>
  </Description>
</targetApplication>

Configuration

Define an interactive command to load the dashboard in a new buffer:

interactive(
    "ublock", "Open uBlock dashboard in a new buffer",
    function (I) {
        var ublock_branch;
        if ("@ublock0/content-policy;1" in Cc) {
            ublock_branch = "ublock0";
        } else if ("@ublock/content-policy;1" in Cc) {
            ublock_branch = "ublock";
        } else {
            throw interactive_error("uBlock not found");
        }
        load_url_in_new_buffer("chrome://"+ublock_branch+"/content/dashboard.html");
    }
);

To open the dashboard, hit:

M-x ublock

Conkeror.org: uBlock (last edited 2016-02-07 12:18:19 by df)