Skip to content

r58Playz/uBlock-mv3

 
 

Repository files navigation

uBlock Origin (uBO) MV3 Port

Note

I do not plan on upstreaming this port because it requires the extension to be whitelisted with a CLI flag or policy forceinstalled, which I doubt upstream will accept as a proper full MV3 port.


uBlock Origin (uBO) is a CPU and memory-efficient wide-spectrum content blocker for Chromium and Firefox. It blocks ads, trackers, coin miners, popups, annoying anti-blockers, malware sites, etc., by default using EasyList, EasyPrivacy, Peter Lowe's Blocklist, Online Malicious URL Blocklist, and uBO filter lists. There are many other lists available to block even more. Hosts files are also supported. uBO uses the EasyList filter syntax and extends the syntax to work with custom rules and filters.

You may easily unselect any preselected filter lists if you think uBO blocks too much. For reference, Adblock Plus installs with only EasyList, ABP filters, and Acceptable Ads enabled by default.

It is important to note that using a blocker is NOT theft. Do not fall for this creepy idea. The ultimate logical consequence of blocking = theft is the criminalization of the inalienable right to privacy.

Ads, "unintrusive" or not, are just the visible portion of the privacy-invading means entering your browser when you visit most sites. uBO's primary goal is to help users neutralize these privacy-invading methods in a way that welcomes those users who do not wish to use more technical means.


Documentation

Basic Mode Advanced Mode
The simple popup user interface for an install-it-and-forget-it type of installation that is configured optimally by default. The advanced popup user interface includes a point-and-click firewall that is configurable on a per-site basis.

Visit the Wiki for documentation.

For support, questions, or help, visit /r/uBlockOrigin.

Installation

  1. Clone and make
  2. Load unpacked dist/build/uBlock0.chromium in the extensions UI
  3. Add the commandline flag --allowlisted-extension-id=<sideloaded_uBO_id>.
  4. Enable "Allow User Scripts" in the extension settings
  5. Restart Chrome

Issues

  1. Occasionally it tries to inject into a nonexistent frame? No idea what's going on here
  2. Probably some of the MV2 APIs haven't been polyfilled yet so random parts are broken

How It Works

  • webRequestBlocking is allowed on MV3 extensions if they are forceinstalled by policy or allowlisted via the command line
  • Polyfilling chrome.tabs.executeScript and chrome.tabs.insertCSS is trivial with chrome.scripting and chrome.userScripts
  • uBO's background page doesn't use many DOM APIs, and polyfilling them is trivial

Release History

Releases Page

Translations

Help translate uBO via Crowdin.

About

Manifesto

Privacy Policy

GPLv3 License

Free. Open-source. For users by users. No donations sought.

If you ever want to contribute something, think about the people working hard to maintain the filter lists you are using, which are available to use by all for free.

About

Full MV3 port of uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.8%
  • CSS 4.8%
  • HTML 3.5%
  • WebAssembly 2.1%
  • Shell 0.6%
  • Makefile 0.1%
  • Python 0.1%