您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sort Github Issues "Updated Last" by default
// ==UserScript== // @name Github "Updated Last" // @description Sort Github Issues "Updated Last" by default // @version 1 // @grant none // @license EPL-2.0 // @namespace basilevs // @match https://github.com/* // ==/UserScript== const list = document.querySelectorAll('a[href^="/"]') console.debug('Found: ',list) for (const a of list) { let url = new URL(a.href) console.debug(url) if (!url.pathname.endsWith("/issues") && !url.pathname.endsWith("/pulls")) { continue } if (url.searchParams.get('q')) { continue } url.searchParams.set('q', 'state:open sort:updated-desc') a.href = url.toString(); }