Created
July 30, 2025 18:49
-
-
Save wjkennedy/2ec55681cff924e83f5faddf3e797b71 to your computer and use it in GitHub Desktop.
✂️ Copy Jira Key
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
| javascript:(function(){function e(e){const t=document.createElement("span");t.textContent="✂️",t.className="scissors-copy-icon",t.style.marginLeft="6px",t.style.cursor="pointer",t.style.fontSize="90%",t.style.verticalAlign="middle",t.style.opacity="0.3",t.style.filter="grayscale(100%)",t.title=`Copy ${e} to clipboard`,t.onclick=n=>{n.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{t.textContent="✅",t.style.opacity="0.6",t.style.filter="none",setTimeout(()=>{t.textContent="✂️",t.style.opacity="0.3",t.style.filter="grayscale(100%)"},1500)}).catch(e=>{console.error("Clipboard copy failed",e)})};return t}function t(){const t=document.querySelector('[data-testid="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');if(t&&!t.querySelector(".scissors-copy-icon")){const n=t.textContent.trim(),i=e(n);i.style.display="none",t.appendChild(i),t.addEventListener("mouseenter",()=>i.style.display="inline"),t.addEventListener("mouseleave",()=>i.style.display="none")}document.querySelectorAll('[data-testid="business-list.ui.list-view.key-cell.issue-key"]').forEach(t=>{if(!t.querySelector(".scissors-copy-icon")){const n=t.textContent.trim(),i=e(n);i.style.display="none",t.appendChild(i),t.addEventListener("mouseenter",()=>i.style.display="inline"),t.addEventListener("mouseleave",()=>i.style.display="none")}})}new MutationObserver(t).observe(document.body,{childList:!0,subtree:!0}),t()})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
