DuckDuckGo Meaningless Things Remover

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.

目前為 2018-09-01 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name DuckDuckGo Meaningless Things Remover
  3. // @namespace https://roderickqiu.scris.top/
  4. // @version 1.0
  5. // @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.
  6. // @author Roderick Qiu
  7. // @match https://duckduckgo.com/*
  8. // @match https://duckduckgo.com//
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var a1 = document.getElementsByClassName("tag-home__item");//remove "The search engine that doesn't track you.".
  16. for(var i=0;i<a1.length;i++) a1[i].parentNode.removeChild(a1[i]);
  17.  
  18. var a2 = document.getElementsByClassName("header--aside__item");//remove "Privacy, simplified.".
  19. for(i=0;i<a2.length;i++) a2[i].parentNode.removeChild(a2[i]);
  20.  
  21. var a3 = document.getElementsByClassName("header--aside__item social");//remove social media links.
  22. for(i=0;i<a3.length;i++) a3[i].parentNode.removeChild(a3[i]);
  23.  
  24. var a4 = document.getElementsByClassName(" js-feedback-btn-wrap");//remove feedback button
  25. for(i=0;i<a4.length;i++) a4[i].parentNode.removeChild(a4[i]);
  26.  
  27. var a5 = document.getElementsByClassName("feedback-prompt");//remove another feedback button
  28. for(i=0;i<a5.length;i++) a5[i].parentNode.removeChild(a5[i]);
  29.  
  30. var a6 = document.getElementsByClassName("js-sidebar-ads");//remove ads
  31. for(i=0;i<a6.length;i++) a6[i].parentNode.removeChild(a6[i]);
  32. })();

QingJ © 2025

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