Skip to content

Instantly share code, notes, and snippets.

@shrhdk
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrhdk/cbd1df2d27109f934905 to your computer and use it in GitHub Desktop.
Save shrhdk/cbd1df2d27109f934905 to your computer and use it in GitHub Desktop.
Add "Ignore Whitespace" button to File Changes Page in GitHub.
// ==UserScript==
// @name GitHub File Changes without whitespace
// @namespace http://shiro.be/
// @version 0.1
// @description Add "Ignore Whitespace" button to File Changes Page in GitHub.
// @match https://github.com/*/*/pull/*/files
// @copyright 2014+, Hideki Shiro
// ==/UserScript==
$("#diff p.explain").append($("<a class='minibutton' href='" + location.href + "?w=1'>Ignore Whitespace</a>"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment