remusao / blockrz Goto Github PK
View Code? Open in Web Editor NEWSuper minimal blocker of ads, trackers and annoyances.
License: Mozilla Public License 2.0
Super minimal blocker of ads, trackers and annoyances.
License: Mozilla Public License 2.0
Hi @remusao ,
Today I saw your PicoAdblocker add-on.
Very nice job. Thank you for your work.
By spying inside your xpi file and here at your GitHub' repo, I read that your add-on uses uBlock' blocking-lists + cliqz' engine (if I'm not wrong, your add-on is a kind of Ghostery' lite version). But at about:performance I can see it's eating more than 4,5MB and CPU is pushed a bit. Compared to uBlock itself or to other similar blockers using blocking-lists, I think your add-on has a pretty nice performance. But I would like to take the opportunity to invite you to check add-ons using just RegExps instead of blocking-lists.
Here is my customized add-on: https://ufile.io/4w399y3a
It's based on this abandoned add-on: https://addons.mozilla.org/en-US/firefox/addon/rule-adblocker/
My JS' knowledge is almost zero, but myself I was capable to clean the original JS' script, and I improved the RegExps. Of course, always there is space for another improvements!
The good news is that my precarious customized version eats just 400KB, and CPU is absolutely quiet.
Most important, this tiny lightweight add-on blocks almost everything with the default RegExps I added. It's not perfect, but it kills 90% of the ads.
Also, any user can add his customized RegExps to block his local ads... and it's very easy to do that!
With regards to trackers, I have another version with RegExps for trackers. It is bigger, eats more RAM and CPU, but it is still very lightweight consuming less than 800KB and low CPU.
Why it's not included in the file I'm attaching you here? Because personally I found that another tiny lightweight add-on blocking third-party JS... blocks most of the trackers in the more efficient way.
In conclusion: RegExps against ads, and blocking of third-party JS against trackers... this is the best combo I found related to low RAM/CPU consume. And the results are great!
I stopped using blocking-lists long time ago. There are plenty of studies showing that less than 20% of each blocking-list is used 90% of the time (80% wasted). So from my ignorance, seems to me very inefficient to use any approach against ads and trackers based on blocking-lists.
I would love to invite you to take a look to this different approach, using RegeExps for ads, and blocking of third-party JS for trackers.
I don't have the knowledge, but perhaps you can build a new add-on, using these two approaches against ads and trackers. If this is the case, if by chance you're interested, please count on me, I can hep you doing tests or whatever you may need. I'm convinced that this is the most efficient approach against ads/trackers, using less RAM/CPU.
Thank you in advance! : )
I have used this code to integrate in my chrome extension. But there is no way to disable the adblocker when the plugin is on. Thanks.
Dependabot can't resolve your JavaScript dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Error whilst updating @cliqz/adblocker-webextension in /yarn.lock:
Couldn't find package "@cliqz/adblocker-extended-selectors@^1.20.0" required by "@cliqz/adblocker@^1.20.0" on the "npm" registry.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
Even if i turn off the adblocker using "disableBlockingInBrowser" function some ads are blocked. For example the ad on the main page of youtube gets blocked even when the adblocker is disabled. The ads from the videos work properly though.
Dependabot can't resolve your JavaScript dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Error whilst updating @cliqz/adblocker-webextension-cosmetics in /yarn.lock:
Couldn't find package "@cliqz/adblocker-extended-selectors@^1.20.0" required by "@cliqz/adblocker-content@^1.20.0" on the "npm" registry.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
how to add new/custom filterlist ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.