
AdHole od marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
Pro používání tohoto rozšíření potřebujete Firefox
Metadata rozšíření
O tomto rozšíření
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');
});
Ohodnoťte svou zkušenost
OprávněníZjistit více
Tento doplněk potřebuje:
- Přistupovat k vašim datům stránky old.reddit.com
Další informace
- Verze
- 1.0
- Velikost
- 13,74 KB
- Poslední aktualizace
- před 5 lety (4. led 2020)
- Příbuzné kategorie
- Licence
- Pouze GNU General Public License v3.0
- Historie změn
Přidat do sbírky
Další doplňky od autora marinuspax
- Zatím nehodnoceno
- Zatím nehodnoceno
- Zatím nehodnoceno
- Zatím nehodnoceno
- Zatím nehodnoceno
- Zatím nehodnoceno