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

178 天前
 llsongll

试用了一下 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+单击打开链接吗?
651 次点击
所在节点    问与答
3 条回复
llsongll
178 天前
// ==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
178 天前
看不懂你想问啥:

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

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

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

???
llsongll
178 天前
@muunala10221 #2 大概意思是我认为临时页面的作用在于减少打开多个标签页,但是不知道这个功能对于浏览网页来说,有没有必要。感觉不错和有没有用,其实不冲突。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/994835

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX