Skip to content

Instantly share code, notes, and snippets.

@greyaperez
Created June 14, 2013 15:52
Show Gist options
  • Save greyaperez/5782961 to your computer and use it in GitHub Desktop.
Save greyaperez/5782961 to your computer and use it in GitHub Desktop.
Helps focus on individual files by enabling collapsible files views.
// ==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