AdHole bởi marinuspax
Attempts to delete promoted in-line ad content within the old.reddit.com document object model.
Không có người dùngKhông có người dùng
Siêu dữ liệu mở rộng
Về tiện ích mở rộng này
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');
});
Được xếp hạng 5 (bởi 1 người dùng)
Quyền hạn và dữ liệu
Thêm thông tin
- Phiên bản
- 1.0
- Kích cỡ
- 13,74 KB
- Cập nhật gần nhất
- 6 năm trước (4 Thg 01 2020)
- Thể loại có liên quan
- Giấy phép
- Chỉ Giấy phép Công cộng GNU v3.0
- Lịch sử các phiên bản
- Thêm vào bộ sưu tập