Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Last active August 29, 2015 13:56
Show Gist options
  • Save Codesleuth/9271479 to your computer and use it in GitHub Desktop.
Save Codesleuth/9271479 to your computer and use it in GitHub Desktop.
A Widen GitHubs Userscript to widen the display of GitHub.

How To Install

  1. Browse to chrome://extensions in a non-incognito window.
  2. Drag the file widengithubs.user.js onto the window (the extensions list).
  3. Accept the security warning. Please review the script to determine that we are not, in fact, installing a malicious script.
  4. Find the script in the list and tick the "Allow in incognito" box for the script.
  5. Profit.
// ==UserScript==
// @name Widen GitHubs
// @author Esendex
// @match https://github.com/*
// ==/UserScript==
(function() {
var widenGithubs = '.container { width: 1280px; }\n'
+ '.container .repository-content { width: 1230px; }\n'
+ '.container .repository-with-sidebar.with-full-navigation .repository-content { width: 1080px; }\n'
+ '.container.column { width: 1092px; }\n'
+ '#files .diffstat+.css-truncate-target { max-width: 855px !important;}\n'
+ '.discussion-timeline { width: 1055px; }\n'
+ '.comment-holder { width: 952px !important; }\n'
+ '.inline-comments .comment-holder { width: 1100px !important; max-width: 1100px !important; }\n'
+ 'table.files td.content .css-truncate { max-width: 470px; }\n'
+ '.discussion-item { position: relative; margin: 15px 0 15px 104px; color: #555; width: 1100px; }\n'
+ '.discussion-item.discussion-commits { width: auto; }\n';
GM_addStyle(widenGithubs);
})();
@adamwitko
Copy link

Untested Javascript. Get out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment