This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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(); |