V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
llsongll
V2EX  ›  问与答

arc 临时页面到底好用不好用

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

    试用了一下 arc ,其他都没觉得咋样,这个临时页面感觉不错,但是用惯了 vivaldi 浏览器,就想找个别的办法实现一下。

    插件找了好多,不是打开链接后没法用其他插件的,(必须夜间模式网页),就是都必须右键打开弹出窗口,无法实现 shift+单击打开。

    我也试了用 gpt 写了个油猴脚本,确实在 Chrome 实现了 shift+单击打开弹出窗口,但 vivaldi 不行。。。

    不知道为啥。。

    vivaldi 主要操作:

    1. 数字 1 、2 切换前后标签
    2. e 打开命令,查看所有标签
    3. j 打开临时笔记
    4. 基于浏览器的手势(设置页面都可以用)
    5. 最主要的:可以隐藏所有 ui

    问题:

    1. 临时页面到底有没有用?
    2. vivaldi 为啥运行不了?
    3. https://github.com/ettoolong/PopupWindow 这个插件开源的,有大神可以帮忙修改一下 shift+单击打开链接吗?
    llsongll
        1
    llsongll  
    OP
       158 天前
    // ==UserScript==
    // @name 打开链接弹出框
    // @namespace http://your.namespace.com
    // @version 0.1
    // @description 在按下 Shift 键的同时单击左键时,在弹出框中打开链接
    // @author Your Name
    // @match http://*/*
    // @match https://*/*
    // @grant none
    // ==/UserScript==

    (function() {
    document.addEventListener('click', function(event) {
    if (event.shiftKey && event.button === 0) {
    event.preventDefault();
    var targetElement = event.target;
    while (targetElement && targetElement.tagName !== 'A') {
    targetElement = targetElement.parentElement;
    }
    if (targetElement && targetElement.tagName === 'A') {
    var url = targetElement.href;

    var popupWidth = 600;
    var popupHeight = 400;
    var left = (window.innerWidth - popupWidth) / 2;
    var top = (window.innerHeight - popupHeight) / 2;

    var popup = window.open(url, '_blank', 'width=' + popupWidth + ',height=' + popupHeight + ',top=' + top + ',left=' + left);
    if (popup) {
    popup.focus();
    } else {
    alert('请允许弹出窗口以查看链接!');
    }
    }
    }
    });
    })();
    muunala10221
        2
    muunala10221  
       158 天前
    看不懂你想问啥:

    标题 :arc 临时页面到底好用不好用

    正文:试用了一下 arc ,其他都没觉得咋样,这个临时页面感觉不错 (好用?

    问题:临时页面到底有没有用? ?

    ???
    llsongll
        3
    llsongll  
    OP
       158 天前
    @muunala10221 #2 大概意思是我认为临时页面的作用在于减少打开多个标签页,但是不知道这个功能对于浏览网页来说,有没有必要。感觉不错和有没有用,其实不冲突。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4390 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:56 · PVG 17:56 · LAX 02:56 · JFK 05:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.