您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
GitHub File History 快速跳转到 https://github.githistory.xyz/
// ==UserScript== // @name GitHub File History // @namespace https://blog.xlab.app/ // @more https://github.com/ttttmr/UserJS // @version 0.6 // @description GitHub File History 快速跳转到 https://github.githistory.xyz/ // @author tmr // @match https://github.com/*/* // @grant none // ==/UserScript== (async function () { "use strict"; let count = 0; function run() { if (document.readyState == "complete" && count > 5) { return; } count++; let n = document.querySelector("a[aria-label='History']"); if (n == null) { setTimeout(run, 500); return; } let cn = n.cloneNode(true); cn.lastChild.textContent = "Git History"; cn.href = cn.href.replace("github.com", "github.githistory.xyz"); n.parentElement.append(cn); } run(); })();