您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Open ALL links in NEW BACKGROUND tab.
// ==UserScript== // @name [ALL] Links Open ALL in NEW BACKGROUND Tab // @author // @description Open ALL links in NEW BACKGROUND tab. // @downloadURL // @grant GM_openInTab // @homepageURL https://bitbucket.org/INSMODSCUM/userscripts-scripts/src // @icon // @include http*://* // @namespace insmodscum // @require https://gf.qytechs.cn/scripts/12228/code/setMutationHandler.js // @run-at document-start // @updateURL // @version 1.0 // ==/UserScript== // needs this in metadata: // @require https://gf.qytechs.cn/scripts/12228/code/setMutationHandler.js // source: // https://gf.qytechs.cn/en/scripts/12367-open-links-in-new-tab/code attachHandler([].slice.call(document.getElementsByTagName('a'))); setMutationHandler(document, 'a', function(nodes) { attachHandler(nodes); return true; }); function attachHandler(nodes) { nodes.forEach(function(node) { if (node.target != '_blank') { node.onclick = clickHandler; node.addEventListener('click', clickHandler); } }); } function clickHandler(e) { if (e.button > 1) return; e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); // GM_openInTab(this.href, e.button || e.ctrlKey); GM_openInTab(this.href, true); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址