Search Engine Replacement

Replace the duckduckgo search engine with any other search engine by providing the URL

安装此脚本?
作者推荐脚本

您可能也喜欢Link Extractor

安装此脚本
  1. // ==UserScript==
  2. // @name Search Engine Replacement
  3. // @description Replace the duckduckgo search engine with any other search engine by providing the URL
  4. // @author SijosxStudio
  5. // @author http://tinyurl.com/BuySijosxStudioCoffee
  6. // @version 1.1
  7. // @match *://*/*
  8. // @grant none
  9. // @inject-into auto
  10. // @run-at document-start
  11. // @namespace https://greasyfork.org/users/1375139
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. "use strict";
  16.  
  17. const searchEngineURL = "https://startpage.com/search";
  18.  
  19. if (window.location.href.search("duckduckgo") >= 0) {
  20. window.location.href = searchEngineURL + window.location.search;
  21. }
  22. })();