您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
As we all know, sometimes there are things like "The search engine that doesn't track you." on DuckDuckGo, I want to remove these things.
当前为
Delete those meaningless text&button in DuckDuckGo.
// ==UserScript==
// @name DuckDuckGo Meaningless Things Remover
// @namespace https://roderickqiu.scris.top/
// @version 1.0
// @description As we all know, sometimes there are things like "The search engine that doesn't track you." on DuckDuckGo, I want to remove these things.
// @author Roderick Qiu
// @match https://duckduckgo.com/*
// @match https://duckduckgo.com//
// @grant none
// ==/UserScript==
(function() {
'use strict';
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]);
var a2 = document.getElementsByClassName("header--aside__item");//remove "Privacy, simplified.".
for(i=0;i<a2.length;i++) a2[i].parentNode.removeChild(a2[i]);
var a3 = document.getElementsByClassName("header--aside__item social");//remove social media links.
for(i=0;i<a3.length;i++) a3[i].parentNode.removeChild(a3[i]);
var a4 = document.getElementsByClassName(" js-feedback-btn-wrap");//remove feedback button
for(i=0;i<a4.length;i++) a4[i].parentNode.removeChild(a4[i]);
var a5 = document.getElementsByClassName("feedback-prompt");//remove another feedback button
for(i=0;i<a5.length;i++) a5[i].parentNode.removeChild(a5[i]);
var a6 = document.getElementsByClassName("js-sidebar-ads");//remove ads
for(i=0;i<a6.length;i++) a6[i].parentNode.removeChild(a6[i]);
})();