Created
March 5, 2012 11:07
-
-
Save unfo/1977891 to your computer and use it in GitHub Desktop.
Extend TRAC ticket view to be 80% wide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Expand my Tickets! | |
// @namespace http://jw.fi/ | |
// @version 0.1 | |
// @description Expands Trac ticket view to be 80% wide to better fit bigger resolutions | |
// @match https://*trac*/* | |
// @copyright 2012+, Jan Wikholm | |
// ==/UserScript== | |
function addStyle(style) { | |
var head = document.getElementsByTagName("HEAD")[0]; | |
var ele = head.appendChild(window.document.createElement("style")); | |
ele.innerHTML = style; | |
return ele; | |
} | |
addStyle("#content { margin-left: 10% !important; margin-right: 10% !important; } #content.ticket { width: 80% !important }"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment