Created
June 14, 2013 15:52
-
-
Save greyaperez/5782961 to your computer and use it in GitHub Desktop.
Helps focus on individual files by enabling collapsible files views.
This file contains hidden or 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
// ==UserScript== | |
// @name GitHub Diff File Toggle Slide | |
// @version 0.3 | |
// @description Helps focus on individual files by collapsing and uncollapsing. | |
// @match https://github.com/*/*/commit/* | |
// @copyright 2013+, Tim A. Perez | |
// ==/UserScript== | |
$(function(){ | |
setTimeout(function(){ | |
$('#files').children('.file').children('.meta').click(function(){ | |
$(this).next().slideToggle('fast'); | |
}).next().slideUp(0); | |
},300); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment