Skip to content

Instantly share code, notes, and snippets.

@unfo
Created March 5, 2012 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unfo/1977891 to your computer and use it in GitHub Desktop.
Save unfo/1977891 to your computer and use it in GitHub Desktop.
Extend TRAC ticket view to be 80% wide
// ==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