- Copy the contents below *:
(function(){const copyText=(text)=>{const textField=document.createElement('textarea');textField.innerText=text;document.body.appendChild(textField);textField.select();document.execCommand('copy');textField.remove()};const branchLinks=document.querySelectorAll('.ms-Link.vc-pullrequest-detail-branch-name, .vc-branches-container .vss-PickListDropdown--title-text');if(branchLinks.length<1){alert('Branch link not found')}else{const branchName=branchLinks[0].innerText.trim();copyText(branchName);const oldTitle=document.title;document.title=`📋 Copied: "${branchName}"`;setTimeout(()=>document.title=oldTitle,1000)}})()
- Create a new bookmark and paste the contents as URL.
- Done. We can call it a day.