Skip to content

Instantly share code, notes, and snippets.

@alesandroortiz
Created February 3, 2016 16:05
Show Gist options
  • Save alesandroortiz/982b32c4eb5661113038 to your computer and use it in GitHub Desktop.
Save alesandroortiz/982b32c4eb5661113038 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name GitHub full-width
// @namespace http://github.com/
// @version 0.1
// @description Allows you to view GitHub in full-width
// @author Alesandro Ortiz (hello@alesandroortiz.com)
// @match https://github.com/*
// @grant none
// ==/UserScript==
// From https://somethingididnotknow.wordpress.com/2013/07/01/change-page-styles-with-greasemonkeytampermonkey/
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.container { transition:width 1.5s; width: 90% !important; } .repository-with-sidebar .repository-content { width: 97% !important; }';
head.appendChild(style);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment