Bookmarklet to Remove Ads from Any Website
Instantly remove ads, popups, banners, and overlays. Get a clean reading experience with one click.
What It Removes
📰 Display Ads
- • Banner ads (top, bottom, sidebar)
- • Google AdSense blocks
- • Amazon affiliate ads
- • Sponsored content sections
🔔 Popups & Overlays
- • Newsletter signup popups
- • Cookie consent banners
- • Full-screen overlays
- • Sticky bars and notifications
🎥 Media Ads
- • Video ad containers
- • Auto-playing media
- • Interstitial ads
- • Social media embeds
🎯 Tracking Elements
- • Facebook pixel iframes
- • Google tracking scripts
- • Third-party widgets
- • Analytics beacons
How It Works
- 1. Smart Detection - Identifies elements by common ad-related classes, IDs, and sources
- 2. Size Filtering - Only removes elements larger than 50x50 pixels to avoid breaking layouts
- 3. Overflow Fix - Restores scrolling if the site disabled it for popups
- 4. Instant Results - Shows how many elements were removed
Perfect For
📖 Reading Articles
Remove distracting ads from news sites, blogs, and online magazines for focused reading.
🖨️ Printing Pages
Clean up web pages before printing to save ink and get cleaner printouts.
📱 Mobile Browsing
Especially useful on mobile where ads take up valuable screen space.
Advanced Versions
Aggressive Ad Removal (Nuclear Option)
This version removes more aggressively, including smaller elements:
javascript:(function(){
const selectors = ['[class*="ad"]','[id*="ad"]','iframe','[class*="promo"]',
'[class*="sponsor"]','[class*="banner"]','[style*="position: fixed"]',
'[style*="position: sticky"]','aside','[class*="sidebar"]'];
let removed = 0;
selectors.forEach(s => {
document.querySelectorAll(s).forEach(el => {
el.remove();
removed++;
});
});
alert(`Nuclear option: Removed ${removed} elements!`);
})();
Remove Only Popups & Overlays
Focuses on removing modal popups and overlays only:
javascript:(function(){
const selectors = ['[class*="modal"]','[class*="popup"]','[class*="overlay"]',
'div[style*="position: fixed"]','div[style*="z-index: 9"]',
'[class*="newsletter"]','[class*="subscribe"]'];
selectors.forEach(s => {
document.querySelectorAll(s).forEach(el => el.remove());
});
document.body.style.overflow = 'auto';
alert('Popups removed!');
})();
Pro Tips
💡 Best Practices
- • Some sites may break if critical elements are removed
- • Refresh the page to restore removed elements
- • Works best on article and blog sites
- • May need to click multiple times for dynamically loaded ads
- • Consider whitelisting sites you want to support
Frequently Asked Questions
Is this as good as a real ad blocker?
No, bookmarklets can't block ads before they load like extensions can. This removes ads after the page loads, so you'll still use bandwidth. It's best for occasional use or computers where you can't install extensions.
Will this work on YouTube or streaming sites?
Limited effectiveness on video platforms. Video ads are usually embedded differently. This works best on text-based sites with display ads.
Can websites detect I'm using this?
Yes, sites can detect removed elements. Some may show anti-adblock messages. This is less detectable than extensions but not invisible.
Related Bookmarklets
Create Your Own Ad Blocker
Customize which elements to remove or add site-specific rules