Last active
June 8, 2019 05:52
-
-
Save renatoch/23737ac63716f1f2043b4789180551dd to your computer and use it in GitHub Desktop.
Show-Hide closed issues in Backlog View - Jira Next-Gen - Chrome Bookmark
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
// Copy and paste to a chrome bookmark on the URL field (chrome automatically joins line breaks) | |
javascript:(function(){ | |
$ = document.querySelectorAll.bind(document); | |
$("a[href*='browse/']").forEach( | |
function(elem){ | |
classes = elem.getAttribute("class").split(' '); | |
if (classes.length <= 2 && window.getComputedStyle(elem).textDecoration.includes('line-through')) { | |
showHideElem(elem); | |
} | |
} | |
); | |
function showHideElem(elem){ | |
if (!elem.parentElement.parentElement.style.visibility) { | |
elem.parentElement.parentElement.style.height = "1px"; | |
elem.parentElement.parentElement.style.visibility = "hidden"; | |
return; | |
} | |
elem.parentElement.parentElement.style.height = ""; | |
elem.parentElement.parentElement.style.visibility = ""; | |
} | |
}) () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment