1 2 3 4 5 6 7 8 9 10 11 12
(function() { if (window.location.href.indexOf('github.com') != -1) { var $hidden_text_expander = $('.commit-message .hidden-text-expander .js-details-target'); if ($('.commit.open').length > 0) { $('.commit').removeClass('open'); } else { $hidden_text_expander.click(); } } })();