NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Hide header in Jira // @namespace http://tampermonkey.net/ // @version 2024-02-05 // @description Header in Jira is too big. This plugin allows you hide it // @author alexesmet // @match https://*.atlassian.net/jira/software/*/projects/* // @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net // @copyright 2024, alexesmet (https://openuserjs.org/users/alexesmet) // @license MIT // @grant none // ==/UserScript== setTimeout(function() { 'use strict'; let isVisible = true; let createButton = document.querySelector("[data-testid='create-button-wrapper']"); let switchButton = document.createElement("pre"); switchButton.classList = createButton.classList; switchButton.innerText = '[-]'; switchButton.style = 'cursor: pointer'; switchButton.addEventListener('click', function() { let breadcrumps = document.querySelector("[data-fullscreen-id='fullscreen-board-breadcrumbs']"); let header = breadcrumps.parentNode; isVisible = !isVisible; header.style.display = isVisible ? '' : 'none'; switchButton.innerText = isVisible ? '[-]' : '[+]'; }); createButton.insertAdjacentElement('afterend', switchButton); }, 2000);