Skip to content

Instantly share code, notes, and snippets.

@Vlatombe
Created September 22, 2016 18:55
Show Gist options
  • Save Vlatombe/3b598bb466fe3fc3954c281678c4b71b to your computer and use it in GitHub Desktop.
Save Vlatombe/3b598bb466fe3fc3954c281678c4b71b to your computer and use it in GitHub Desktop.
Widen Github commit status
// ==UserScript==
// @name Wide commit status
// @namespace http://latombe.net
// @version 0.1
// @description Useful if you have commit status that are longer than what GH expects and are ellipsed
// @author Vincent Latombe <vincent@latombe.net>
// @match https://github.com/*/commits/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('.dropdown-menu-e { width: 700px !important; max-width: inherit !important; }');
addGlobalStyle('.branch-action-item.open>.merge-status-list { max-height:400px !important; }');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment