Skip to content

Instantly share code, notes, and snippets.

@ro-tex
Created November 5, 2019 10:13
Show Gist options
  • Save ro-tex/f054b9ce124125d5dcd9ec6ea02f49fa to your computer and use it in GitHub Desktop.
Save ro-tex/f054b9ce124125d5dcd9ec6ea02f49fa to your computer and use it in GitHub Desktop.
Wide github.com
// ==UserScript==
// @name Wide github.com
// @namespace http://tampermonkey.net/
// @version 0.1
// @description make github.com 100% wide
// @author Ivaylo Novakov
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let containers = document.getElementsByClassName('container-lg');
for(let i=0; i < containers.length; i++) {
containers[i].style.maxWidth = '100%';
}
let columns = document.getElementsByClassName('col-9');
for(let i=0; i < columns.length; i++) {
columns[i].style.width = '80%';
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment