-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from saujanyaraj07/main
New Chrome Extension: Chrome Ad Blocker
- Loading branch information
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Ad blocker", | ||
"version": "1.0", | ||
"description": "Enjoy a safe,simple and an ad-free browsing experience!", | ||
"permissions": ["webRequest", "webRequestBlocking", "<all_urls>"], | ||
"background": { | ||
"scripts": ["background.js"] | ||
}, | ||
"icons": { | ||
"16": "icons/logo_16x16.png", | ||
"48": "icons/logo_48x48.png", | ||
"128": "icons/logo_128x128.png" | ||
}, | ||
"manifest_version": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<p align="center"> <img width="100" alt="logo_128x128" src="https://user-images.githubusercontent.com/88873588/152343530-c826ee00-1d1e-4151-8083-63ca9d07c2f4.PNG"> | ||
|
||
|
||
# <p align="center"> Chrome Ad Blocker- Enjoy a safe,simple and an ad-free browsing experience! </p> | ||
|
||
**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) | ||
|
||
<br> | ||
|
||
![image](https://user-images.githubusercontent.com/88873588/152338584-c79fa0e8-65b0-4a10-be8b-6a778f9c5599.png) |