Skip to content

Instantly share code, notes, and snippets.

@chrisk
Created March 17, 2011 22:43
Show Gist options
  • Save chrisk/875287 to your computer and use it in GitHub Desktop.
Save chrisk/875287 to your computer and use it in GitHub Desktop.
Greasemonkey script to adjust Pivotal Tracker for a big, vertical screen
// ==UserScript==
// @name Pivotal Tracker Info Radiator
// @namespace http://kampers.net
// @include https://www.pivotaltracker.com/projects/*
// ==/UserScript==
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(" \
body, \
#controlPanel { \
min-width: inherit !important; \
} \
.layout { \
border-spacing: 0 !important; \
} \
#header, \
#controls_search_velocity_row, \
.item .icons .toggleExpandedButton, \
.item .icons .flyoverIcon, \
.item .releaseMarkerNotAccepted .stateChangeButton.finish, \
.item .storySelector, \
.item .stateChangeButton.reject, \
.item .strengthWidgetContainer { \
display: none !important; \
} \
.storyPreviewButtons { \
padding-right: 2px !important; \
} \
.item .icons .left { \
margin-left: 8px !important; \
margin-top: 2px !important; \
} \
#controlPanel { \
height: 42px !important; \
} \
.item .storyPreviewText { \
padding-left: 48px !important; \
padding-top: 2px !important; \
} \
.item .icons { \
width: 48px !important; \
} \
");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment