From f6aae0a072fa147e581a396a84018e5f2a77cc79 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 13 Jan 2022 11:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8]=20=E5=8A=9F=E8=83=BD=20(?= =?UTF-8?q?=E6=9C=80=E5=B7=A6=E4=BE=A7=E4=B8=8D=E8=A7=A6=E5=8F=91=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DuckDuckGo-Enhanced.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DuckDuckGo-Enhanced.user.js b/DuckDuckGo-Enhanced.user.js index 6a243e2..2d43f17 100644 --- a/DuckDuckGo-Enhanced.user.js +++ b/DuckDuckGo-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name DuckDuckGo 增强 -// @version 1.0.0 +// @version 1.0.1 // @author X.I.U // @description 屏蔽指定域名、修复图标加载、链接不携来源、快捷回到顶部(右键两侧空白处) // @match https://duckduckgo.com/* @@ -40,7 +40,7 @@ menu_ID[i] = GM_registerMenuCommand(`${GM_getValue(menu_ALL[i][0])?'✅':'❌'} ${menu_ALL[i][1]}`, function(){menu_switch(GM_getValue(menu_ALL[i][0]), menu_ALL[i][0], menu_ALL[i][2])}); } } - menu_ID[menu_ID.length] = GM_registerMenuCommand('💬 反馈 & 建议', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/436428/feedback', {active: true,insert: true,setParent: true});}); + menu_ID[menu_ID.length] = GM_registerMenuCommand('💬 反馈 & 建议', function () {GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true}); GM_openInTab('https://greasyfork.org/zh-CN/scripts/436428/feedback', {active: true,insert: true,setParent: true});}); } // 菜单开关 @@ -135,7 +135,7 @@ // 快捷回到顶部(右键两侧空白处) function backToTop() { if (!GM_getValue('menu_backToTop')) return - document.getElementById('web_content_wrapper').oncontextmenu = document.getElementById('links_wrapper').oncontextmenu = function(e){ + document.getElementById('web_content_wrapper').oncontextmenu = document.querySelector('#web_content_wrapper > .cw').oncontextmenu = document.getElementById('links_wrapper').oncontextmenu = function(e){ if (e.target == this) { e.preventDefault(); window.scrollTo(0,0);