Skip to content

Instantly share code, notes, and snippets.

@mountainash
Created March 19, 2024 07:15
Show Gist options
  • Save mountainash/0068a16a22c2bbd9c47e5f1fe0c724ac to your computer and use it in GitHub Desktop.
Save mountainash/0068a16a22c2bbd9c47e5f1fe0c724ac to your computer and use it in GitHub Desktop.
An Arc boost to change the Title of details fields in JIRA
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