Last active
August 20, 2021 18:29
-
-
Save davidedc/60e6f99cb0cd70e6d8d0 to your computer and use it in GitHub Desktop.
Bookmarklet to verticalise the JIRA Epic board
This file contains 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
// "turns" the usual JIRA Epic board | |
// can be turned into bookmarklet using http://mrcoles.com/bookmarklet/ | |
(elem=document.getElementById("ghx-column-headers")).parentNode.removeChild(elem); | |
var cusid_ele, images, i; | |
cusid_ele = document.getElementsByClassName('ghx-column'); | |
for (i = 0; i < cusid_ele.length; ++i) { | |
var item = cusid_ele[i]; | |
item.style.display = 'block'; | |
item.style.width = '100%'; | |
item.style.borderTop = "thick solid #000000"; | |
item.style.height = "3000px"; | |
} | |
cusid_ele = document.getElementsByClassName('ghx-swimlane'); | |
for (i = 0; i < cusid_ele.length; ++i) { | |
var item = cusid_ele[i]; | |
item.style.width = '5.5%'; | |
item.style.display = 'inline-block'; | |
} | |
cusid_ele = document.getElementsByClassName('ghx-columns'); | |
for (i = 0; i < cusid_ele.length; ++i) { | |
var item = cusid_ele[i]; | |
item.style.borderSpacing = '0px'; | |
} | |
images = document.getElementsByTagName('img'); | |
for(i = 0; i < images.length; i++) { | |
images[i].style.width = "0px"; | |
images[i].style.height = "0px"; | |
} | |
cusid_ele = document.getElementsByClassName('ghx-issue-content'); | |
for (i = 0; i < cusid_ele.length; ++i) { | |
var item = cusid_ele[i]; | |
item.style.padding = "1px 1px 1px 7px"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment