Create a gist now

Instantly share code, notes, and snippets.

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.
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();
}
});
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
$('.meta').each(function(index, value) {
$(value).parent().show();
});
@codeimpossible

this is the greatest gist in the history of the world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment