Skip to content

DrakoHyena/ad-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS IS VERY WIP AT THE MOMENT

Example

let adblock = require("./adblock.js");
adblock = new adblock(true, true) // Use the built in list and get the most up to date list from the github

adblock.addSite("https://google.com", "exact"); // Add your own sites if youd like
console.log(adblock.test("https://google.com"));// true

adblock.addSite("tiktok.com", "include");
console.log(adblock.test("https://tiktok.com"));// true

adblock.addSite("somesite") // Default detection mode is exact
console.log(adblock.test("http://somesite.com")); // false, didnt match somesite exactally

console.log(adblock.test("https://knowAdProvider.ads")) // false, registered in the built in lists

Contributing

If you can improve the code, go for it. If you find more ad providers add them to the ad lists and create a pull request with proof that the added individuals provide ads, trackers, or other related things.

About

Detect urls or ips associated with ads and other related things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published