Github Repository Active Forks

Adds a button to search for active forks of the original Github repository on techgaun.github.io

目前為 2020-03-21 提交的版本,檢視 最新版本

// ==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.0
// @icon
// @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 = window.location.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或关注我们的公众号极客氢云获取最新地址