AdBlock Extension

You can add your own AdBlock extension to Chrome or Microsoft Edge using a very small amount of code.

Every extension must have a manifest file

“name”: “Brandon Adblocker”,
“version”: “1.0”,
“desciption”: “Brandon Adblocker”,
“permissions”: [“webRequest”, “webRequestBlocking”, “<all_urls>”],
“16”: “icons/logo_16x16.png”,
“48”: “icons/logo_48x48.png”,
“128”: “icons/logo_128x128.png”
“manifest_version”: 2

The main area is in the URLS section of background.js

function(details){ return { cancel: true }},
{ urls: [“*://**”]},

every URL you add will be blocked.

This extension is a quick and easy way to block ad sites or sites not blocked by other Adblock programs.

I did not publish this to the Chrome or Edge store to test your code make sure Chrome or Edge is in developer mode and upload it in .zip format.

Repository Language: JavaScript file download
Last Updated: August 14, 2020
Size: 22,737k
Download Name: