Skip to content

Instantly share code, notes, and snippets.

@cannibalox
cannibalox / GH - is fork ahead.js
Last active January 17, 2022 12:09 — forked from scawp/UserScript.js
A UserScript to see which Github forks are ahead and other info
// ==UserScript==
// @name Github is Fork Ahead
// @version 0.1
// @description Shows how far ahead/behind a fork is from upstream when viewing fork page on github
// @match https://github.com/*/*/network/members
// ==/UserScript==
async function fetchLastCommit(partial_url) {
const response = await fetch('https://api.github.com/repos/' + partial_url + '/commits?page=1&per_page=1')
const commitJson = await response.json();