kulous
V2EX  ›  V2EX

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

  •  
  •   kulous · Dec 11, 2023 · 4332 views
    This topic created in 1062 days ago, the information mentioned may be changed or developed.

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

    8 replies  •  2023-12-11 19:38:57 +08:00
    Sunya233
    Sunya233
    Dec 11, 2023❤️2
    1
    鼠标中键点就行了
    Puteulanus
    Puteulanus
    Dec 11, 2023
    2
    可以用油猴脚本给所有 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
    hua123s
    Dec 11, 2023
    3
    鼠标中 或 按住 ctrl 或者 command 点链接
    Pipecraft
    Pipecraft
    Dec 11, 2023
    4
    安装 https://greasyfork.org/zh-CN/scripts/464541-links-helper 这个油猴脚本,
    设置中添加 ^/t/\d+(#.*)?$
    即可实现帖子在新窗口打开,其他页面保持原来方式。
    shzbkzo
    shzbkzo
    Dec 11, 2023
    6
    lifei6671
    lifei6671
    Dec 11, 2023❤️1
    7
    v2 没人安装 V2EX Polish 这个 Chrome 扩展吗?可以美化 v2 的网页,超好用。
    kulous
    kulous
    OP
    Dec 11, 2023
    8
    感谢各路神仙解围。感觉楼中楼很好用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1669 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 11:26 · PVG 19:26 · LAX 03:26 · JFK 06:26
    ♥ Do have faith in what you're doing.