-
-
Save jbubriski/eba4bbeecccd5e4fc0ec to your computer and use it in GitHub Desktop.
Bookmarklets to make it easier to work with GitHub diffs in GitHub. To use them, add a new bookmark with "javascript: " and then the code below. Use when viewing commit or Pull Request diffs.
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
String.prototype.endsWith = function(suffix) { | |
return this.indexOf(suffix, this.length - suffix.length) !== -1; | |
}; | |
$('.meta').each(function(index, value) { | |
var path = $(value).data('path'); | |
if(path.endsWith('.unity') | |
|| path.endsWith('.meta') | |
|| path.endsWith('.anim') | |
|| path.endsWith('.controller') | |
|| path.endsWith('.prefab') | |
|| path.endsWith('.asset')) { | |
$(value).parent().hide(); | |
} | |
}); |
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
String.prototype.endsWith = function(suffix) { | |
return this.indexOf(suffix, this.length - suffix.length) !== -1; | |
}; | |
$('.meta').each(function(index, value) { | |
$(value).parent().show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@codeimpossible lol, thanks, it's now a blog post at: http://johnnycode.com/2014/05/20/improved-unity-diffs-in-github/