sindresorhus/refined-github
The issue has been closed
`comments-time-machine-links` shouldn't show banner when latest commit is before comment #3244
dotconnor posted onGitHub
Clicking a non-perma link to a file from comments-time-machine-links
adds a query parameter with the comment's date. Then adds a banner at the top of that file allowing the user to go to that file whenever the comment was posted.
If the comment was posted after the latest commit for that file then the banner shouldn't be shown.
For example: https://github.com/sindresorhus/refined-github/blob/master/source/features/comments-time-machine-links.tsx
The latest commit timestamp can be found on the dom element: .repository-content .Box.Box--condensed relative-time
.