Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide `link-to-file-in-file-history` where not needed #2025

Merged
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

change detect to see if path has changed

  • Loading branch information...
dotconnor committed May 11, 2019
commit a45e035d2d548f6f4d194be7bb1d6960ba461752
@@ -17,9 +17,11 @@ function init(): void | false {
if (!path) {
return false;
}
if (path.includes('commits')) {

if (getRepoPath() === path) {
return false;
}
}

for (const rootLink of select.all<HTMLAnchorElement>('[aria-label="Browse the repository at this point in the history"]')) {
// `rootLink.pathname` points to /tree/ but GitHub automatically redirects to /blob/ when the path is of a file
rootLink.before(
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.