Greasy Fork is available in English.
Remove ads from the DuckDuckGo search results page
当前为
// ==UserScript==
// @name DuckDuckGo - Ad Remover
// @namespace someAnonGuy
// @version 2021.04.11
// @description Remove ads from the DuckDuckGo search results page
// @author someAnonGuy
// @grant none
// @match *://duckduckgo.com/*
// ==/UserScript==
(function() {
'use strict';
function removeByClass(clsname) {
var a1 = document.getElementsByClassName(clsname);
for(var i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);
}
(function() {
setTimeout(function() {
removeByClass("results--ads results--ads--main js-results-ads");
removeByClass("result results_links highlight_a result--ad--good result--ad highlight_sponsored sponsored result--ad--small result--url-above-snippet");
}, 1000);
})();
})();