AdHole 제작자: marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
사용자 없음사용자 없음
확장 메타 데이터
정보
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');
});
1명이 5점으로 평가함
권한 및 데이터
추가 정보
- 부가 기능 링크
- 버전
- 1.0
- 크기
- 13.74 KB
- 마지막 업데이트
- 6년 전 (2020년 1월 4일)
- 관련 카테고리
- 버전 목록
- 모음집에 추가