Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chrisk/73084 to your computer and use it in GitHub Desktop.
Save chrisk/73084 to your computer and use it in GitHub Desktop.
Greasemonkey script to hide the labels in Pivotal Tracker's story lists
// ==UserScript==
// @name Hide labels in Pivotal Tracker story lists
// @namespace http://shiftcommathree.com
// @description Hides the small green labels before each story title
// @include http://www.pivotaltracker.com/projects/*
// @include http://pivotaltracker.com/projects/*
// @author Chris Kampmeier
// ==/UserScript==
function addGlobalStyle(css) {
var head = document.getElementsByTagName('head')[0];
if (!head) { return; }
var style = document.createElement('style');
style.setAttribute("type", "text/css");
if (navigator.userAgent.indexOf('AppleWebKit/') > -1) {
style.innerText = css;
} else {
style.innerHTML = css;
}
head.appendChild(style);
}
addGlobalStyle(
'div.storyPreviewText span.storyLabels {' +
' display: none;' +
'}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment