您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
控制链接在当前或新标签页打开,分页链接始终在当前页打开// ==/UserScript==
该脚本用于控制网页链接的打开方式,可通过脚本菜单在「当前标签打开」和「新标签打开」之间切换。特别优化了分页链接(如包含 /page/数字/ 格式的链接,例如 xxx.com/page/3/ xxx.com/page/4 等)的处理逻辑 —— 此类分页链接会强制在当前标签页打开,避免翻页时频繁新建标签页,提升浏览连贯性。
本脚本基于「稻米鼠」的原创作品《链接地址全在【当前 / 新建】标签页中打开》修改,在保留原脚本核心功能的基础上,新增了对分页链接的特殊处理。
This script is used to control how web page links open. You can switch between "Open in current tab" and "Open in new tab" via the script menu. It specially optimizes the handling of pagination links (such as links in the format /page/number/, e.g., xxx.com/page/3/, xxx.com/page/4, etc.) — this type of pagination link will force open in the current tab, avoiding frequent new tabs when turning pages and improving browsing coherence.
This script is modified based on the original work "Open links in [current/new] tab" by "稻米鼠". On the basis of retaining the core functions of the original script, the special handling logic for pagination links is added.