打开一个帖子怎么在新的窗口打开呀?每次打开一个帖子看完还得点击返回,太难受了。这是得装插件还是可以设置的。
浏览器通用快捷键,按住Ctrl再点鼠标左键就是新标签页打开,按住Shift再点就是新浏览器窗口打开
2 个赞
鼠标中键
学到了,学到了
学到了!
鼠标中键,也就是滚轮
Learned +1
// ==UserScript==
// @name Open Discourse Links in New Window
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Open Discourse topic links in a new window
// @author Your Name
// @match https://linux.do/*
// @grant none
// ==/UserScript==
function openInNewWindow(e) {
const link = e.target.closest('a[href^="/t/topic/"]');
if (link) {
e.preventDefault();
window.open(link.href, '_blank');
}
}
document.addEventListener('click', openInNewWindow, {
capture: true,
});
涨姿势