Skip to content

Black Hole is an invisible ad-blocker created for Chromium-based browser (Brave, Chrome...).

License

Notifications You must be signed in to change notification settings

Bombo01/Black-hole-ad-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black hole

Black hole ad-blocker is an invisible ad-blocker created for Chromium-based browser (Brave, Chrome...).

This project is currently under development, therefore it may not work as expected.

Working_with GitHub repo size Release Blocked_sites

Table of content

How it works 🛠️

When a request is made by the client it passes through the extension that redirects the sites in the blacklist to a non-existent one which, therefore, responds with an error, and the advertisement cannot load.

In this way, the sites fail to recognize this as an ad-blocker but simply as an internal error.

Install the preview 📁

Installing the preview is quite easy.

  1. Download the source code and extract the folder
  2. Go in background.js at line 3
  let url = chrome.runtime.getURL('data/blacklist_normal.json');
  1. Edit blacklist_normal.json with your blacklist or keep this one
  2. Go on your Chromium browser and open extensions settings as
    • brave://extensions/
    • chrome://extensions/
  3. Enable developer mode
  4. Click on Load Unpacked and select the folder (you probably have to reload the extension)
  5. Now the extension is loaded.

Making your blacklist 📄

I created 2 file for you:

But you can make your own blacklist. It must be a json array like this:

[
  "*://*.site1.tld/*",
  ...
]

I suggest you this collection of blocklist.

I created a simple java app which you can use to create your own blocklist.
You only need to create a file like example.txt and then running these commands:

  cd helper
  javac helper.java
  java helper example.txt

The output will be like output.json.

Blocked sites ⛔

List of sites loaded: