- 积分
- 2533
- 最后登录
- 2024-4-20
- 精华
- 0
- 阅读权限
- 50
- 主题
- 101
- UID
- 4720714
- 帖子
- 6258
- PB币
- 8186
- 威望
- 5
- 贡献
- 0
- 技术
- 15
- 活跃
- 2116
- UID
- 4720714
- 帖子
- 6258
- PB币
- 8186
- 贡献
- 0
- 技术
- 15
- 活跃
- 2116
|
- // ==UserScript==
- // @name 新标签打开链接
- // @author daysv
- // @namespace http://daysv.github.com
- // @description 链接强制在新建标签中打开 Open a URL in background new tab
- // @version 0.3.0
- // @include http*://bbs.pcbeta.com/forum.php*
- // @run-at document-start
- // @grant GM_openInTab
- // ==/UserScript==
- (function (win) {
- win.addEventListener('click', function (e) {
- if (e.target.href && e.target.tagName === 'A' && e.which === 1) {
- if((e.target.href).search("viewthread") != -1){
- e.preventDefault();
- GM_openInTab(e.target.href, false);
- }
- }
- }, true);
- })(window);
复制代码 分享一个油猴脚本, 基于"新标签打开链接"这个脚本稍加改造
作用是, 远景论坛看帖时在新标签打开.
有需要的自取.
|
|