JavaScript Adblock

Open-source JavaScript projects categorized as Adblock

Top 23 JavaScript Adblock Projects

  1. 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)

  2. 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.

    CodeRabbit logo
  3. serverless-dns

    The RethinkDNS resolver that deploys to Cloudflare Workers, Deno Deploy, Fastly, and Fly.io

  4. FuckAdBlock

    Detects ad blockers (AdBlock, ...)

  5. AdguardForiOS

    The most advanced ad blocker for iOS

    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.

  6. Stay

    Stay is a local userscript manager and an extension sample for Safari on iOS/iPadOS.

  7. AdGuardForSafari

    AdGuard for Safari app extension

    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.

  8. 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.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. cloudflare-gateway-pihole-scripts

    Use Cloudflare Gateway DNS/VPN to block ads, malware and tracking domains - free alternative to NextDNS, Pi-hole and Adguard

  11. cname-trackers

    This repository contains a list of popular CNAME trackers

  12. 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-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.

  13. 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-22

    WiFi security can be improved by per-device passwords, https://github.com/spr-networks/super

  14. Frellwits-filter-lists

    Various filter lists for uBlock Origin.

  15. ttv_adEraser

    TTV AdEraser aims to remove livestream ads as well as add some useful features to our favourite streaming site.

  16. blocklists

    An opinionated collection of blocklists for RethinkDNS. (by serverless-dns)

  17. spotishush

    🔇 Mutes audio ads on Spotify, Deezer, TIDAL and IDAGIO.

  18. adblock-detect-react

    Provides utilities to check if ad block is enabled on a page via either a React hook or a wrapper component.

  19. RR-Adblocker

    A browser extension that blocks ads and trackers to make your web surfing faster and safer.

  20. videosegments

    Extension to skip unwanted content in videos

  21. adblock-filter-analyzer

    AdBlock Filter Syntax code highlighter and partial validator. Colorizes and explains the syntax. Good for learning.

  22. invidious-linker

    Chrome extension to watch YouTube videos ad-free

    Project mention: "Featured" Chrome Extensions: Not Quite Featured | news.ycombinator.com | 2024-09-29
  23. 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. 👀

  24. facebook-sponsor-blocker

    Firefox extensions for Facebook to block sponsored and suggested from your feed.

  25. Reddit-ChromeExt-PromotedBlock

    This is a google chrome extension to block promoted posts on reddit.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Adblock discussion

Log in or Post with

JavaScript Adblock related posts

  • WebShield – A new wide-spectrum content blocker for Safari

    8 projects | news.ycombinator.com | 28 Feb 2025
  • "Featured" Chrome Extensions: Not Quite Featured

    5 projects | news.ycombinator.com | 29 Sep 2024
  • Some notes on Firefox's media autoplay settings in practice as of Firefox 124

    2 projects | news.ycombinator.com | 30 Mar 2024
  • What is adguardInstaller.com

    1 project | /r/Adguard | 10 Dec 2023
  • Less aggressive porn blocklist?

    1 project | /r/pihole | 7 Dec 2023
  • Google resumes transition to Manifest V3 for Chrome extensions

    3 projects | news.ycombinator.com | 16 Nov 2023
  • YouTube's plan backfires, people are installing better ad blockers

    12 projects | news.ycombinator.com | 3 Nov 2023
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 18 Mar 2025
    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 →

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

Sponsored
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.
coderabbit.ai

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?