Skip to content

Instantly share code, notes, and snippets.

@cubanx
Created April 9, 2013 20:06
Show Gist options
  • Save cubanx/5348924 to your computer and use it in GitHub Desktop.
Save cubanx/5348924 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Pivotal Biggify
// @description Makes Pivotal usable on a big board
// @include https://*.pivotaltracker.com/*
// ==/UserScript==
if (location.hostname == 'www.pivotaltracker.com') {
setInterval(function() {
document.getElementById('header').style.display = 'none';
document.getElementById('controlPanel').style.display = 'none';
var alterStuff = function (classToAlter, styleToChange) {
var els = document.getElementsByClassName(classToAlter);
var elsArray = Array.prototype.slice.call(els, 0);
elsArray.forEach(function(el) {
styleToChange(el);
});
}
var hideStuff = function (classToHide) {
alterStuff(classToHide, function(el) {
el.style.display = 'none';
})
}
hideStuff('toggleExpandedButton');
hideStuff('storySelector');
hideStuff('panelHeader');
hideStuff('panelHeaderLeft');
hideStuff('panelHeaderRight');
hideStuff('storyLabels');
hideStuff('flyoverIcon');
hideStuff('accepted');
alterStuff('storyPreviewText', function(el) {
el.style.fontSize = '28px';
el.style.marginTop = '5px';
el.style.marginBottom = '5px';
el.style.lineHeight = '.9em';
})
alterStuff('estimate', function(el) {
el.style.fontSize = '28px';
})
alterStuff('inner', function(el) {
el.style.overflow = 'hidden';
})
alterStuff('layout', function(el) {
el.style.marginTop = '5px';
el.style.borderSpacing = '0';
})
alterStuff('iterationHeader', function(el) {
el.style.height = '40px';
})
alterStuff('date', function(el) {
el.style.fontSize = '28px';
})
alterStuff('iteration_length', function(el) {
el.style.fontSize = '28px';
})
alterStuff('points', function(el) {
el.style.fontSize = '28px';
})
var backlogList = document.getElementById("backlog_itemList");
backlogList.style.height = 'auto';
}, 500)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment