
AdHole Autor: marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
Brak użytkownikówBrak użytkowników
Potrzebujesz Firefoksa, aby używać tego rozszerzenia
Metadane rozszerzenia
O tym rozszerzeniu
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');
});
Oceniony na 5 przez jednego recenzenta
Uprawnienia i daneWięcej informacji
Wymagane uprawnienia:
- Mieć dostęp do danych użytkownika na stronie „old.reddit.com”
Więcej informacji
- Wersja
- 1.0
- Rozmiar
- 13,74 KB
- Ostatnia aktualizacja
- 6 lat temu (4 sty 2020)
- Powiązane kategorie
- Licencja
- Tylko GNU General Public License v3.0
- Historia wersji
- Dodaj do kolekcji
Więcej rozszerzeń od: marinuspax
- Nie ma jeszcze ocen
- Nie ma jeszcze ocen
- Nie ma jeszcze ocen
- Nie ma jeszcze ocen
- Nie ma jeszcze ocen
- Nie ma jeszcze ocen