DuckDuckGo Meaningless Things Remover

As we all know, sometimes there are things like "The search engine that doesn't track you." on DuckDuckGo, and I want to remove these things.

目前为 2018-09-23 提交的版本。查看 最新版本

// ==UserScript==
// @name         DuckDuckGo Meaningless Things Remover
// @namespace    https://roderickqiu.scris.top/
// @version      1.1
// @description  As we all know, sometimes there are things like "The search engine that doesn't track you." on DuckDuckGo, and I want to remove these things.
// @author       Roderick Qiu
// @match        https://duckduckgo.com/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    var a1 = document.getElementsByClassName("tag-home__item");//remove "The search engine that doesn't track you.".
    for(var i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("header--aside__item");//remove "Privacy, simplified.".
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("header--aside__item social");//remove social media links.
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("js-feedback-btn-wrap");//remove feedback button
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("feedback-prompt");//remove another feedback button
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("js-sidebar-ads");//remove ads
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("js-serp-bottom-right");//remove supporter icons
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("footer");//remove footer
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("js-badge-cookie-msg");//remove a badge
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("onboarding-ed");//remove information about duckduckgo
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);

    a1 = document.getElementsByClassName("logo_homepage__tt");//remove things when clicking logo
    for(i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址