Efficient · Minimal · Adblocker · Privacy
A super minimal blocker of ads, trackers and annoyances which works out of the box:
- Blocks ads.
- Blocks tracking.
- Blocks annoyances.
- Very small memory and CPU footprint(*).
- Fast loading time(**).
This extension does not offer options to configure the behavior of the extension and is aimed at people who want a content blocker which just works out of the box. To this effect, the developer of this addon has carefully selected a set of stable and widely used filters lists, updated daily. The following lists are used by default:
- EasyList (ads)
- EasyList Cookies (annoyances)
- Peter Lowe’s Ad server list (ads and tracking)
- EasyPrivacy (tracking)
- uBlock filters (ads + tracking + annoyances)
(*) The source code weighs ~70KB gzipped and ~190KB uncompressed. The raw memory usage is less than 5MB (1.7MB reported in about:performance), which is smaller than any other adblocker extension.
(**) The blocker is initialized in less than 200ms, even on cold start, which means that ads and trackers are blocked as soon as your browser starts.
Building code from https://github.com/remusao/blockrz can be done with:
- Build the extension:
yarn install --frozen-lock && yarn bundle
- Load it in Firefox or Chromium by using the "Load unpacked extension" feature
Is it really less than 100 lines of code?
Yes.
$ loc content-script.ts background.ts
--------------------------------------------------------------------------------
Language Files Lines Blank Comment Code
--------------------------------------------------------------------------------
TypeScript 2 132 14 60 58
--------------------------------------------------------------------------------
Total 2 132 14 60 58
--------------------------------------------------------------------------------
It's tiny, does it actually perform like other blocker extensions?
Yes it is small, but it leverages @cliqz/adblocker to do the heavy-lifting. This means that the extension is doing as much as any other content-blocker (if you make abstraction of the UI, of course, which only consists in a counter of blocked requests). At the time of this writing, this is still the fastest and most memory efficient adblocker around.
Which filters lists is it using?
Currently, it is using a pre-built engine distributed on Cliqz' CDN. This means that no parsing is required client-side to load the engine (super-fast loading cached between sessions!). The default lists at the time of this writing are: