
AdHole ์ ์์: marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
์ด ํ์ฅ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ ค๋ฉด Firefox๊ฐ ํ์ํจ
ํ์ฅ ๋ฉํ ๋ฐ์ดํฐ
์ ๋ณด
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');
});
ํ๊ฐ
๊ถํ๋ ์์๋ณด๊ธฐ
๋ค์ ๊ถํ ํ์:
- old.reddit.com์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ถ๊ฐ ์ ๋ณด
- ๋ฒ์
- 1.0
- ํฌ๊ธฐ
- 13.74 KB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 5๋ ์ (2020๋ 1์ 4์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- GNU General Public License v3.0 only
- ๋ฒ์ ๋ชฉ๋ก
๋ชจ์์ง์ ์ถ๊ฐ
marinuspax ๋์ ๋ค๋ฅธ ํ์ฅ ๊ธฐ๋ฅ
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค