Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renatoch/23737ac63716f1f2043b4789180551dd to your computer and use it in GitHub Desktop.
Save renatoch/23737ac63716f1f2043b4789180551dd to your computer and use it in GitHub Desktop.
Show-Hide closed issues in Backlog View - Jira Next-Gen - Chrome Bookmark
// 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