Skip to content

Commit

Permalink
Merge pull request #27 from saujanyaraj07/main
Browse files Browse the repository at this point in the history
New Chrome Extension: Chrome Ad Blocker
  • Loading branch information
harshita214 authored Feb 3, 2022
2 parents 22ec8c4 + 07e6ad7 commit 3cedfd6
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
19 changes: 19 additions & 0 deletions AD BLOCKER/background.js
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"]
)
Binary file added AD BLOCKER/icons/logo_128x128.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AD BLOCKER/icons/logo_16x16.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AD BLOCKER/icons/logo_48x48.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions AD BLOCKER/manifest.json
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
}
32 changes: 32 additions & 0 deletions AD BLOCKER/readme.md
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)

0 comments on commit 3cedfd6

Please sign in to comment.