Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Top 23 JavaScript Adblock Projects
-
The Blocklist Project
These lists were created because the founder of the project wanted something with a little more control over what is being blocked. Many lists out there are all or nothing. We set out to create lists with more control over what is being blocked and believe that we have accomplished that. (by blocklistproject)
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
serverless-dns
The RethinkDNS resolver that deploys to Cloudflare Workers, Deno Deploy, Fastly, and Fly.io
-
-
Project mention: NetGuard – rootless Android outbound per-app OSS firewall, like LittleSnitch | news.ycombinator.com | 2024-10-23
https://github.com/AdguardTeam/AdguardForiOS
I am pretty sure it is open source. I’ve been using it for years both for upstream DNS and blocklist filtering.
-
-
Project mention: WebShield – A new wide-spectrum content blocker for Safari | news.ycombinator.com | 2025-02-28
To set a baseline: Ad blockers work by a combination of static rulesets and dynamic javascript.
Safari does not support the ruleset format of Chrome/Firefox, so a ruleset has to be maintained for it specifically. In practice this is always the AdGuard ruleset. I doubt a single adblocker doesn't use this as a base.
Beyond that is the custom JS they inject. It's hard to say how good it is but that is the only selling point:
- https://github.com/arjpar/WebShield/tree/cae7629f1c5fb79fe76...
AdGuard has its own too:
- https://github.com/AdguardTeam/AdGuardForSafari/tree/master/... (JS files)
They look similar in a lot of ways, because well they have to, but I haven't done any deep analysis.
Safari extensions will never match uBlock Origin because it simply does not provide the same APIs (webRequest blocking and DNS) that Firefox does.
-
Sefinek-Blocklist-Collection
🌍 A repository of blocklists for various DNS servers, featuring over 100 links and more than 6 million domains. Additionally, you can use our personalized Blocklist Generator to customize content filtering according to your individual needs, giving you full control over what should be blocked on your network.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
cloudflare-gateway-pihole-scripts
Use Cloudflare Gateway DNS/VPN to block ads, malware and tracking domains - free alternative to NextDNS, Pi-hole and Adguard
-
-
WebShield
A new wide-spectrum content blocker for Safari designed to be performant, efficient, and effective.
Project mention: WebShield – A new wide-spectrum content blocker for Safari | news.ycombinator.com | 2025-02-28To set a baseline: Ad blockers work by a combination of static rulesets and dynamic javascript.
Safari does not support the ruleset format of Chrome/Firefox, so a ruleset has to be maintained for it specifically. In practice this is always the AdGuard ruleset. I doubt a single adblocker doesn't use this as a base.
Beyond that is the custom JS they inject. It's hard to say how good it is but that is the only selling point:
- https://github.com/arjpar/WebShield/tree/cae7629f1c5fb79fe76...
AdGuard has its own too:
- https://github.com/AdguardTeam/AdGuardForSafari/tree/master/... (JS files)
They look similar in a lot of ways, because well they have to, but I haven't done any deep analysis.
Safari extensions will never match uBlock Origin because it simply does not provide the same APIs (webRequest blocking and DNS) that Firefox does.
-
super
📡 SPR: Open Source, secure, user friendly and fast wifi routers for your home. One wifi password per device. Ad Blocking & Privacy Blocklists. Policy Based Network Access (by spr-networks)
Project mention: Spies Jumped from One Network to Another via Wi-Fi in an Unprecedented Hack | news.ycombinator.com | 2024-11-22WiFi security can be improved by per-device passwords, https://github.com/spr-networks/super
-
-
ttv_adEraser
TTV AdEraser aims to remove livestream ads as well as add some useful features to our favourite streaming site.
-
-
-
adblock-detect-react
Provides utilities to check if ad block is enabled on a page via either a React hook or a wrapper component.
-
RR-Adblocker
A browser extension that blocks ads and trackers to make your web surfing faster and safer.
-
-
adblock-filter-analyzer
AdBlock Filter Syntax code highlighter and partial validator. Colorizes and explains the syntax. Good for learning.
-
Project mention: "Featured" Chrome Extensions: Not Quite Featured | news.ycombinator.com | 2024-09-29
-
CodexDrake
An open source, privacy-first, self-hosting capable and blazing fast search engine written in JavaScript. Browse anonymously and safely without the need to pay third-party APIs. 👀
-
facebook-sponsor-blocker
Firefox extensions for Facebook to block sponsored and suggested from your feed.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
JavaScript Adblock discussion
JavaScript Adblock related posts
-
WebShield – A new wide-spectrum content blocker for Safari
-
"Featured" Chrome Extensions: Not Quite Featured
-
Some notes on Firefox's media autoplay settings in practice as of Firefox 124
-
What is adguardInstaller.com
-
Less aggressive porn blocklist?
-
Google resumes transition to Manifest V3 for Chrome extensions
-
YouTube's plan backfires, people are installing better ad blockers
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 18 Mar 2025
Index
What are some of the best open-source Adblock projects in JavaScript? This list will help you:
# | Project | Stars |
---|---|---|
1 | The Blocklist Project | 4,054 |
2 | serverless-dns | 2,122 |
3 | FuckAdBlock | 1,897 |
4 | AdguardForiOS | 1,492 |
5 | Stay | 1,149 |
6 | AdGuardForSafari | 1,102 |
7 | Sefinek-Blocklist-Collection | 597 |
8 | cloudflare-gateway-pihole-scripts | 420 |
9 | cname-trackers | 392 |
10 | WebShield | 349 |
11 | super | 218 |
12 | Frellwits-filter-lists | 140 |
13 | ttv_adEraser | 127 |
14 | blocklists | 91 |
15 | spotishush | 81 |
16 | adblock-detect-react | 64 |
17 | RR-Adblocker | 33 |
18 | videosegments | 21 |
19 | adblock-filter-analyzer | 17 |
20 | invidious-linker | 17 |
21 | CodexDrake | 12 |
22 | facebook-sponsor-blocker | 9 |
23 | Reddit-ChromeExt-PromotedBlock | 2 |