Skip to content

Instantly share code, notes, and snippets.

@s-shin
Created September 13, 2018 08:39
Show Gist options
  • Save s-shin/170b53955256a4c90bf134b5ed80b768 to your computer and use it in GitHub Desktop.
Save s-shin/170b53955256a4c90bf134b5ed80b768 to your computer and use it in GitHub Desktop.
javascript:{ const sha = document.querySelector(".commit-tease-sha"); if (sha) { location.href = location.href.replace(/blob\/[^/]+/, `blob/${sha.textContent.trim()}`); } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment