您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
use numbers to open topics with unread messages in a new tab
// ==UserScript== // @name Open unread topics with number keys // @license MIT // @namespace http://tampermonkey.net/ // @version 1.01 // @description use numbers to open topics with unread messages in a new tab // @author Milan // @match https://*.websight.blue/threads/* // @match https://websight.blue // @icon https://lore.delivery/static/blueshi.png // @grant GM_openInTab // ==/UserScript== (function() { document.addEventListener('keydown', function(e) { const topics = [...document.querySelectorAll('.thread-unread')].filter(span=> span.style.display != "none").map(span=>span.children[0].href); if (e.key == '0') { GM_openInTab(topics[9]); } else { if(parseInt(e.key)) { GM_openInTab(topics[(parseInt(e.key) - 1)]); } } }); })();