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.com raw diff link | |
// @namespace github.com | |
// @description Appends raw diff link | |
// @include https://github.com/*/*/commit/* | |
// ==/UserScript== | |
var container = document.getElementById('toc').getElementsByClassName('explain')[0], | |
loc = window.location + '', | |
link = document.createElement('a'); |