Skip to content

Open-source Ad-Blocker which helps to block unnecessary ads while surfing websites.

License

Notifications You must be signed in to change notification settings

ksalokya/adBlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adBlocker

Ad Blocker extensions are most popular browser extensions found in browser's web stores. So what is an Ad Blocker extension❓

It prevents advertisements, malwares and stops advertisers from accessing your browsing history and personal information.

One can block ads using two methods -

1 - Modify your local hosts file by editing your /etc/hosts file and map domains you don't want (adware, malware etc.) to 0.0.0.0.
2 - Create a browser extension. Add an event listener to the onBeforeRequest event (gets activated when a request is about to occur) and add a filter on the domains you want to block.
This repo is prototype of 2nd method mentioned above.

Test this extension locally -

  • Download zip file.
  • Extract it.
  • Open Chrome and go to settings.
  • Go to Extensions option and turn on developer mode.
  • Click on Load unpacked and select unzipped folder.
  • Enjoy!

Leave a star behind if this repo helped you in any way. 😄

About

Open-source Ad-Blocker which helps to block unnecessary ads while surfing websites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published