1.0.3 • Published 1 year ago

ad-detector v1.0.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

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.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago