Skip to content

Instantly share code, notes, and snippets.

@hawx
Last active December 22, 2015 05:39
Show Gist options
  • Save hawx/6425770 to your computer and use it in GitHub Desktop.
Save hawx/6425770 to your computer and use it in GitHub Desktop.
Widen Github .bookmarklet
javascript: (
function() {
var widenGithubs = '.container { width: 1280px; } ' +
'.container .repository-content { width: 1230px; } ' +
'.container .repository-with-sidebar.with-full-navigation .repository-content { width: 1080px; } ' +
'.container .column { width: 1092px; } ' +
'#files .diffstat+.css-truncate-target { max-width: 855px !important;} ' +
'.discussion-timeline { width: 1055px; } ' +
'.comment-holder { width: 952px !important; } ' +
'.inline-comments .comment-holder { width: 1100px !important; max-width: 1100px !important; } ' +
'table.files td.content .css-truncate { max-width: 470px; }';
var htmlDiv = document.createElement('div'); htmlDiv.innerHTML = '<p>foo</p><style>' + widenGithubs + '</style>';
document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[1]);
}
)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment