您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to search for active forks of the original Github repository on techgaun.github.io.
// ==UserScript== // @name Github Repository Active Forks // @description Adds a button to search for active forks of the original Github repository on techgaun.github.io. // @namespace iamMG // @version 1.1 // @include /https?:\/\/github\.com\/.+\// // @author iamMG // @run-at document-end // @grant GM.openInTab // @copyright 2020, iamMG (https://openuserjs.org/users/iamMG) // @license MIT // ==/UserScript== (function() { 'use strict'; var kid = document.createElement("div"); kid.classList.add("btn-with-count"); kid.innerHTML = '<a class="btn btn-sm" title="Search for active forks">Active Forks</a>'; var url = document.getElementsByClassName('mr-2 flex-self-stretch')[0].getElementsByTagName('a')[0].href; if (document.getElementsByClassName('fork-flag')[0]) { url = document.getElementsByClassName('fork-flag')[0].getElementsByTagName('a')[0].href }; kid.addEventListener('click', function() { window.open("https://techgaun.github.io/active-forks/index.html#" + url); }); document.getElementsByClassName('pagehead-actions')[0].appendChild(kid); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址