AdHole by marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
You'll need Firefox to use this extension
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');
});
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');
});
Rate your experience
PermissionsLearn more
This add-on needs to:
- Access your data for old.reddit.com
More information
- Version
- 1.0
- Size
- 13.74 KB
- Last updated
- 5 years ago (Jan 4, 2020)
- Related Categories
- License
- GNU General Public License v3.0 only
- Version History
Add to collection
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