AdHole wot marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
Žani wužiwarjoŽani wužiwarjo
Metadaty rozšěrjenja
Wo tutym rozšěrjenju
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');
});
Z 5 wot 1 pohódnoćaceho pohódnoćeny
Prawa a daty
Dalše informacije
- Wersija
- 1.0
- Wulkosć
- 13,74 KB
- Posledni raz zaktualizowany
- 6 vite më parë (4 Jan 2020)
- Přiwuzne kategorije
- Wersijowa historija
- Zběrce přidać