NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Github Whitespace Ignorer // @namespace ameboide // @author ameboide // @description Ignores whitespace on Github Diffs // @include *://github.com/* // @version 1 // ==/UserScript== function w1(){ var as = document.querySelectorAll('[href*="/commit/"]:not([href$="w=1"]), [href*="/pull/"]:not([href$="w=1"])'); for(var i=0; i<as.length; i++){ as[i].href += (as[i].href.indexOf('?') > -1 ? '&' : '?') + 'w=1'; } } setInterval(w1, 1000);