Jira has a cool feature when you enable official integration with GitHub. It allows you to copy the branch name from a task. This is useful when you want to create a new branch for a task, and you don't want to manually type the branch name. It also shows whether the PR has been merged and other related information.
However, not every team has this integration enabled! So, here's a quick guide on how to replicate this functionality using TamperMonkey or Run JavaScript Chrome extensions.
The implementation assumes that the markup won't change in the future, so it's not very robust and will probably stop working after a few releases. However, it works now, so enjoy it while you can!