Skip to content

Instantly share code, notes, and snippets.

@jbubriski jbubriski/HideUnityFiles.js Secret
Created May 19, 2014

Embed
What would you like to do?
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 comment has been minimized.

Copy link

commented May 19, 2014

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

@jbubriski

This comment has been minimized.

Copy link
Owner Author

commented May 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.