Skip to content

Ad Blocker and YouTube Included for Chrome Browser

PrivyXe/adblock-extensions-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Advanced AdBlocker Chrome Extension

Advanced AdBlocker: A powerful Chrome extension that blocks advertisements across the web, with a focus on YouTube ad removal.

Chrome License


✨ Features

  • 🛡️ General Ad Blocking — Blocks common ad networks and tracking scripts.
  • 🎥 YouTube Ad Removal — Specifically targets YouTube video ads and overlays.
  • 📊 Statistics Tracking — Monitor how many ads have been blocked.
  • ⚙️ Customizable Settings — Enable/disable different types of ad blocking.
  • 🎨 Modern UI — Beautiful glassmorphism design with real-time statistics.

🚀 Installation

Method 1: Load as Unpacked Extension (Recommended)

  1. Download or clone this repository.
  2. Open Chrome and navigate to chrome://extensions/.
  3. Enable Developer mode.
  4. Click Load unpacked and select the extension folder.
  5. The extension will be installed and ready to use.

Method 2: Create ZIP File

  1. Select all files in the extension folder.
  2. Right-click and create a ZIP archive.
  3. Rename the ZIP file to advanced-adblocker.zip.
  4. Share the ZIP file for easy installation.

⚙️ How It Works

Background Script (background.js)

  • Intercepts network requests using Chrome's webRequest API.
  • Blocks requests to known ad domains and YouTube ad servers.
  • Removes tracking headers.
  • Maintains statistics of blocked ads.

Content Scripts

  • content.js — General ad blocking across all websites.
  • youtube.js — YouTube-specific ad removal and video player modifications.

Popup Interface

  • Modern, responsive design with glassmorphism effects.
  • Real-time statistics display.
  • Toggle controls for different ad blocking features.
  • Settings persistence using Chrome storage.

📌 Features in Detail

YouTube Ad Blocking

  • Removes video ads before they play.
  • Hides ad overlays and banners.
  • Automatically clicks skip buttons when available.
  • Speeds up ads that can't be skipped.
  • Blocks YouTube ad network requests.

General Ad Blocking

  • Blocks requests to major ad networks:

    • Google AdSense/AdWords
    • Facebook Ads
    • Amazon Ad System
    • DoubleClick
    • And more
  • Removes ad elements from DOM.

  • Hides ad containers and iframes.

  • Blocks tracking scripts.

Statistics

  • Tracks total ads blocked.
  • Separate counter for YouTube ads.
  • Persistent storage across sessions.
  • Reset functionality.

📂 File Structure

adblock/
├── manifest.json          # Extension configuration
├── background.js          # Service worker for network filtering
├── content.js             # General ad blocking content script
├── youtube.js             # YouTube-specific ad blocking
├── popup.html             # Extension popup interface
├── popup.js               # Popup functionality
├── icons/                 # Extension icons
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
└── README.md              # This file

⚙️ Configuration

  • Main Toggle — Enable/disable all ad blocking.
  • YouTube Ads — Toggle YouTube-specific ad blocking.
  • General Ads — Toggle general website ad blocking.

🔒 Privacy

  • Does not collect or transmit personal data.
  • Only blocks ad requests and removes ad elements.
  • Stores settings and statistics locally.
  • Does not track browsing history.

🛠️ Troubleshooting

Extension Not Working

  1. Ensure the extension is enabled in chrome://extensions/.
  2. Check for conflicts with other ad blockers.
  3. Refresh the page.
  4. Inspect browser console for errors.

YouTube Ads Still Appearing

  1. Ensure YouTube ad blocking is enabled.
  2. Refresh YouTube page.
  3. Clear browser cache and cookies.
  4. Verify if YouTube updated ad delivery system.

Performance Issues

  1. Temporarily disable extension to test.
  2. Check if issue persists on other websites.
  3. Monitor browser memory usage.

🛠️ Development

  1. Edit relevant JS files.
  2. Update manifest.json for new permissions.
  3. Test changes by reloading extension.
  4. Create ZIP file for distribution.

🤝 Contributing

  • Add new ad blocking patterns.
  • Improve YouTube ad detection.
  • Enhance UI design.
  • Add new features.

📄 License

MIT License — Open source.


⚠️ Disclaimer

For educational and personal use only. Respect website terms of service and support content creators.

About

Ad Blocker and YouTube Included for Chrome Browser

Resources

Stars

Watchers

Forks

Packages

No packages published