Skip to content

Instantly share code, notes, and snippets.

@wjkennedy
Created July 30, 2025 18:49
Show Gist options
  • Select an option

  • Save wjkennedy/2ec55681cff924e83f5faddf3e797b71 to your computer and use it in GitHub Desktop.

Select an option

Save wjkennedy/2ec55681cff924e83f5faddf3e797b71 to your computer and use it in GitHub Desktop.
✂️ Copy Jira Key
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()})();
@wjkennedy
Copy link
Author

Screenshot 2025-07-30 at 2 56 19 PM

@wjkennedy
Copy link
Author

Screenshot 2025-07-30 at 2 57 49 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment