
AdHole por marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
Necesitarás Firefox para usar esta extensión
Metadata de la extensión
Sobre esta extensión
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');
});
Califica tu experiencia
PermisosSaber más
Este complemento necesita:
- Acceder a tus datos para old.reddit.com
Más información
- Versión
- 1.0
- Tamaño
- 13,74 KB
- Última actualización
- hace 5 años (4 de ene. de 2020)
- Categorías relacionadas
- Licencia
- Solo Licencia Pública General de GNU v3.0
- Historial de versiones
Añadir a la colección
Más extensiones de marinuspax
- Todavía no hay valoraciones
- Todavía no hay valoraciones
- Todavía no hay valoraciones
- Todavía no hay valoraciones
- Todavía no hay valoraciones
- Todavía no hay valoraciones