Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of AdHole

AdHole by marinuspax

Attempts to delete promoted in-line ad content within the old.reddit.com document object model.

5 (1 reviews)5 (1 reviews)
No UsersNo Users
You’ll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Scope is limited to old.reddit.com - this means it only works when the domain is *old.reddit.com/*

On the client, the add-on uses javascript to search through the dom for elements with a class name of 'promotedlink' and removes each element found.

source code below:
function removeElementsByClass(className){
var elements = document.getElementsByClassName(className);
while(elements.length > 0){
elements[0].parentNode.removeChild(elements[0]);
}
}

removeElementsByClass('promotedlink');

document.addEventListener("DOMContentLoaded", function(event){
removeElementsByClass('promotedlink');
});
Rated 5 by 1 reviewer
Sign in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
0
3
0
2
0
1
0
Read 1 review
Permissions and dataLearn more

Required permissions:

  • Access your data for old.reddit.com
More information
Version
1.0
Size
13.74 KB
Last updated
6 years ago (Jan 4, 2020)
Related Categories
  • Privacy & Security
  • Appearance
  • Other
License
GNU General Public License v3.0 only
Version History
  • See all versions
Add to collection
Report this add-on
More extensions by marinuspax
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla’s homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.