您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press "s" to Startpage in DuckDuckGo. Based on "Press "g" to Google (DuckDuckGo)" by Gea-Suan Lin
// ==UserScript== // @name Press "s" to Startpage (DuckDuckGo) // @version 0.1 // @description Press "s" to Startpage in DuckDuckGo. Based on "Press "g" to Google (DuckDuckGo)" by Gea-Suan Lin // @author George Georgiou // @match https://duckduckgo.com/* // @grant none // @license MIT // @namespace https://gf.qytechs.cn/users/371031 // ==/UserScript== (function() { 'use strict'; document.addEventListener('keyup', function(event) { if ('input' === document.activeElement.tagName.toLowerCase()) { return; } if ('s' !== event.key) { return; } let q = document.getElementById('search_form_input').value; let q_encoded = encodeURIComponent(q).replace(/%20/g, '+'); let url = 'https://www.startpage.com/do/search?q=' + q_encoded; document.location = url; }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址