Created
April 24, 2018 01:16
-
-
Save prendradjaja/1fa5c31924200cec92ec354f39867add to your computer and use it in GitHub Desktop.
Go to a GitHub PR's branch
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: var repo_url = window.location.href.split('/').slice(0,5).join('/'); var branch_name = document.querySelectorAll('#partial-discussion-header .commit-ref')[1].innerText; window.location.href = repo_url + '/tree/' + branch_name; |
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
var repo_url = window.location.href.split('/').slice(0,5).join('/'); | |
var branch_name = document.querySelectorAll('#partial-discussion-header .commit-ref')[1].innerText; | |
window.location.href = repo_url + '/tree/' + branch_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment