怎么样单独设置 V2 点击帖子都是新建窗口打开,每次单击都是原窗口打开,挺烦的。
1 Sunya233 2023-12-11 12:21:47 +08:00 ![]() 鼠标中键点就行了 |
![]() | 2 Puteulanus 2023-12-11 12:24:46 +08:00 可以用油猴脚本给所有 a 标签加上 target="_blank" ``` // ==UserScript== // @name V2EX 新窗口打开 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match * // @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... document.querySelectorAll('a').forEach(function(link) { link.setAttribute('target', '_blank'); }); })(); ``` |
![]() | 3 hua123s 2023-12-11 12:29:32 +08:00 鼠标中 或 按住 ctrl 或者 command 点链接 |
![]() | 4 Pipecraft 2023-12-11 13:57:09 +08:00 安装 https://greasyfork.org/zh-CN/scripts/464541-links-helper 这个油猴脚本, 设置中添加 ^/t/\d+(#.*)?$ 即可实现帖子在新窗口打开,其他页面保持原来方式。 |
![]() | 5 Eiden 2023-12-11 15:09:55 +08:00 |
![]() | 6 shzbkzo 2023-12-11 15:25:17 +08:00 |
![]() | 7 lifei6671 2023-12-11 15:37:23 +08:00 ![]() v2 没人安装 V2EX Polish 这个 Chrome 扩展吗?可以美化 v2 的网页,超好用。 |
![]() | 8 kulous OP 感谢各路神仙解围。感觉楼中楼很好用。 |