diff --git a/AD BLOCKER/background.js b/AD BLOCKER/background.js new file mode 100644 index 00000000..06a46010 --- /dev/null +++ b/AD BLOCKER/background.js @@ -0,0 +1,19 @@ +const defaultFilters = [ + "*://*.ebay.com/*", + "*://*.pune.craigslist.org//*", + "*://*.gumtree.com/*", + "*://*.oodle.com/*", + "*://*.adpost.com/*", + "*://*.hoobly.com/*", + "*://*.salespider.com/*", + "*://*.adsglobe.com/*", + "*://*.yakaz.com/*", + "*://*.google-analytics.com/*", + "*://*.doubleclick.net/*" +] + +chrome.webRequest.onBeforeRequest.addListener( + function(details) { return { cancel: true }}, + { urls: defaultFilters }, + ["blocking"] +) \ No newline at end of file diff --git a/AD BLOCKER/icons/logo_128x128.PNG b/AD BLOCKER/icons/logo_128x128.PNG new file mode 100644 index 00000000..aaa32dad Binary files /dev/null and b/AD BLOCKER/icons/logo_128x128.PNG differ diff --git a/AD BLOCKER/icons/logo_16x16.PNG b/AD BLOCKER/icons/logo_16x16.PNG new file mode 100644 index 00000000..3f78b30d Binary files /dev/null and b/AD BLOCKER/icons/logo_16x16.PNG differ diff --git a/AD BLOCKER/icons/logo_48x48.PNG b/AD BLOCKER/icons/logo_48x48.PNG new file mode 100644 index 00000000..0b4bff3e Binary files /dev/null and b/AD BLOCKER/icons/logo_48x48.PNG differ diff --git a/AD BLOCKER/manifest.json b/AD BLOCKER/manifest.json new file mode 100644 index 00000000..603d40b5 --- /dev/null +++ b/AD BLOCKER/manifest.json @@ -0,0 +1,15 @@ +{ + "name": "Ad blocker", + "version": "1.0", + "description": "Enjoy a safe,simple and an ad-free browsing experience!", + "permissions": ["webRequest", "webRequestBlocking", ""], + "background": { + "scripts": ["background.js"] + }, + "icons": { + "16": "icons/logo_16x16.png", + "48": "icons/logo_48x48.png", + "128": "icons/logo_128x128.png" + }, + "manifest_version": 2 +} \ No newline at end of file diff --git a/AD BLOCKER/readme.md b/AD BLOCKER/readme.md new file mode 100644 index 00000000..217806d8 --- /dev/null +++ b/AD BLOCKER/readme.md @@ -0,0 +1,32 @@ +

logo_128x128 + + +#

Chrome Ad Blocker- Enjoy a safe,simple and an ad-free browsing experience!

+ +**An Ad blocker is a software that blocks network requests to and/or from advertising servers.** + +**Using this chrome extension, Users get fast, sleek ad-blocking capabilities to enjoy sites like Chrome interruption free.** + +**No more annoying pop-ups, accidental clicks on malware ads and nothing getting in your way of enjoying the internet.** + +![image](https://user-images.githubusercontent.com/88873588/152337873-d25447a2-5e48-4d0d-9d27-b369d2300538.png) + +## Tech Stack used: +* HTML +* CSS +* JavaScript + +## Features: + + ->Block annoying ads and banners. + + ->Block pop ups. + + ## Working: + This Extension will Block The Sites or popup that I will provide in the **background.js file.** + +![image](https://user-images.githubusercontent.com/88873588/152338035-99e6b985-efd7-4c7d-8f42-b488f9c2abef.png) + +
+ +![image](https://user-images.githubusercontent.com/88873588/152338584-c79fa0e8-65b0-4a10-be8b-6a778f9c5599.png)