Created
March 19, 2024 07:15
-
-
Save mountainash/0068a16a22c2bbd9c47e5f1fe0c724ac to your computer and use it in GitHub Desktop.
An Arc boost to change the Title of details fields in JIRA
This file contains hidden or 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
const jiraDisciplines = () => { | |
const jiraDetailsHs = document.querySelectorAll('h2[data-component-selector=jira-issue-field-heading-field-heading-title]'); | |
jiraDetailsHs.forEach(h => { | |
if (h.innerText === 'Components') { | |
h.innerText = 'Disciplines' | |
return true; | |
} | |
}); | |
}; | |
navigation.addEventListener('navigate', () => { | |
let interval = setInterval(() => { | |
if (jiraDisciplines()) { | |
clearInterval(interval); | |
console.log('Arc Boost: waiting until clear'); | |
} | |
}, 200); | |
jiraDisciplines() | |
}); | |
jiraDisciplines(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment