Jump to content

uBlock Origin WebExtension lands on Firefox AMO


Batu69

Recommended Posts

The WebExtension version of the popular content blocker uBlock Origin has landed on Mozilla's official Add-ons website for the Firefox web browser.

A big upcoming shift from legacy add-ons to WebExtensions forces add-on developers to port their legacy add-ons to ensure compatibility with Firefox 57 and newer versions of the browser.

 

Mozilla plans to cut off legacy support in Firefox 57 Stable which means essentially that add-ons that are not WebExtensions by the time won't work anymore in the web browser.

 

Legacy add-on developers face three major issues: first that Mozilla is still working on WebExtension APIs, second that WebExtensions will be limited in what developers can do with them when compared to legacy add-ons, and third that it is just a couple of months before the switch happens.

uBlock Origin WebExtension on Firefox AMO

ublock origin webextension

 

Work on a WebExtension version of uBlock Origin began back in October 2016. The extension was released on GitHub back then which meant that it was not signed at that point in time. Users who were interested in the new version were only able to install it as a temporary add-on. Good for testing, but not really practicable for every day use.

 

The move to being distributed through Mozilla's official add-on repository takes care of the issue. The WebExtension version of uBlock Origin is available on the development channel on AMO currently.

 

Firefox users who want to install the extension can do so in the following way:

Advertisement
 
  1. Load the official uBlock Origin page on the Mozilla website.
  2. Scroll down on the page until you find the Development Channel section on it.
  3. Click on Development Channel to expand it.
  4. Either click directly on the "add to Firefox" link to install the latest build -- which is the WebExtension version of uBlock Origin", or click on "see complete development channel history" to list previous versions as well.

Note: Existing uBlock Origin users will notice a delay during the process. This is caused by the importing of data from legacy storage to WebExtension storage. The process may take up to five minutes. The legacy storage won't be touched during the process so that it is possible to return to the legacy extension at a later point in time. The WebExtension storage will be deleted however when you uninstall the uBlock Origin WebExtension.

 

Other things worth noting are:

  • The new version is a hybrid extension right now. It will show up as legacy in about:addons.
  • script:contains filter do not work.
  • cosmetic filters are limited as the browser's user styles cannot be used for that anymore.
  • Users who are on the "legacy" dev channel will notice that the "dev channel will cease to work". These users need to install the new version manually it appears.

Closing Words

The publication of the WebExtension version of uBlock Origin on Mozilla AMO marks the next step in the development of the new version of the popular add-on for Firefox. There is work to be done for sure, but Gorhill still has several months before the change hits Firefox.

 

The first version is less powerful right now than the current legacy add-on version for Firefox. Most Firefox users may want to stick with the legacy add-on version for now because of that.

 

Article source

Link to comment
Share on other sites


  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply
35 minutes ago, Ice Frog said:

nice, using it.

Why ? at this point it is inferior too Chorme's  WebExtension of it and  a lot stuff is broke.. Are you beta testing nighties or something and need it ?.. The latest stable version of ubo is working fine on the General Release of Firefox.

Quote

 

Reminder: this will also happen:

  • script:contains filters will stop working
  • cosmetic filters will no longer use the browser's user styles
    • this is something I need to address -- user styles are still possible with webext, but this will require some non-trivial re-work because currently user styles are injected in content scripts, while with webext they have to be injected through the main process;
    • also I still need to take the time to create/demonstrate a real test case of what I see as a theoretical flaw in the API regarding style injection through tabs.insertCSS: the call is asynchronous, thus there is no guarantee the page/frame which is meant to be injected is still present in the target tab.
  • For all those Firefox and Firefox-based browsers based on Firefox v53 and less, the dev channel of uBO will cease to work, and they will have to install manually the xpi version from the repo here if you want to keep using the dev version of uBO, or install the stable version of uBO on AMO.

Issue #2795 will be a collection of bugzilla.mozilla.org issues which currently affect the webext version of uBO.

Important: I haven't been able to try the webext version on Firefox Mobile. As per documentation, only with Firefox Mobile 55 (beta) you can access uBO's popup panel.

 

https://github.com/gorhill/uBlock/releases/tag/1.13.9b0

 

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...