V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kulous
V2EX  ›  V2EX

怎么样单独设置 V2 点击帖子都是新建窗口打开

  •  
  •   kulous · 138 天前 · 1118 次点击
    这是一个创建于 138 天前的主题,其中的信息可能已经有所发展或是发生改变。

    怎么样单独设置 V2 点击帖子都是新建窗口打开,每次单击都是原窗口打开,挺烦的。

    8 条回复    2023-12-11 19:38:57 +08:00
    Sunya233
        1
    Sunya233  
       138 天前   ❤️ 2
    鼠标中键点就行了
    Puteulanus
        2
    Puteulanus  
       138 天前
    可以用油猴脚本给所有 a 标签加上 target="_blank"

    ```
    // ==UserScript==
    // @name V2EX 新窗口打开
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description try to take over the world!
    // @author You
    // @match https://www.v2ex.com/*
    // @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');
    });

    })();
    ```
    hua123s
        3
    hua123s  
       138 天前
    鼠标中 或 按住 ctrl 或者 command 点链接
    Pipecraft
        4
    Pipecraft  
       138 天前
    安装 https://greasyfork.org/zh-CN/scripts/464541-links-helper 这个油猴脚本,
    设置中添加 ^/t/\d+(#.*)?$
    即可实现帖子在新窗口打开,其他页面保持原来方式。
    shzbkzo
        6
    shzbkzo  
       137 天前
    lifei6671
        7
    lifei6671  
       137 天前   ❤️ 1
    v2 没人安装 V2EX Polish 这个 Chrome 扩展吗?可以美化 v2 的网页,超好用。
    kulous
        8
    kulous  
    OP
       137 天前
    感谢各路神仙解围。感觉楼中楼很好用。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2808 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:06 · PVG 14:06 · LAX 23:06 · JFK 02:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.