This bookmarklet displays absolute dates on GitHub by finding all <time-ago> and <relative-time> elements and inserting a selectable <span> containing the full timestamp before each one. Instead of seeing only relative timestamps like 3 days ago, you'll also see the exact date and time in a smaller font above the relative text. You can also select and copy it.
Last active
January 21, 2026 15:40
-
-
Save jftuga/5b552b008c24860c73a14d5c0f36b2c5 to your computer and use it in GitHub Desktop.
GitHub Absolute Date Bookmarklet
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: (function () { | |
| document.querySelectorAll("time-ago, relative-time").forEach(function (el) { | |
| if (el.dataset.absDateAdded) return; | |
| var span = document.createElement("span"); | |
| span.textContent = el.getAttribute("title"); | |
| span.style.cssText = | |
| "display: block; font-size: 0.5rem; color: #666; user-select: text;"; | |
| el.parentNode.insertBefore(span, el); | |
| el.dataset.absDateAdded = "true"; | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment