Open Links in Background Tabs One-Button Toggle

A movable semi-transparent toggle appears in the corner. ON: links open in background tabs, Alt=current, Shift=foreground. Master enable/disable applies per HOSTNAME.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Te55eract
日安装量
0
总安装量
5
评分
0 0 0
版本
2.1
创建于
2025-09-30
更新于
2025-10-02
大小
12.4 KB
许可证
MIT
适用于
所有网站

Hover the bottom-right corner to reveal a single toggle button that forces links to open in background tabs. Red = OFF, green = ON. The setting is remembered per page (origin + path). When you visit a page again the settings are automatically reapplied to that page.

This version allows for moving the toggle on/off button by dragging it around. to reset the position, double click the button. If the place you dragged the button falls off the page when you resize it then the button is moved inward to maintain visibility.

This version of the script has a master toggle menu item that appears in the Tampermonkey extension's menu. The toggle functions on a hostname basis

Modifiers:

when open tabs in background is turned toggled to ON then the following modifiers apply:

Shift+click: open the link in a foreground tab
ALT+click: open the link in the current tab