Skip to content

Instantly share code, notes, and snippets.

@jftuga
Last active January 21, 2026 15:40
Show Gist options
  • Select an option

  • Save jftuga/5b552b008c24860c73a14d5c0f36b2c5 to your computer and use it in GitHub Desktop.

Select an option

Save jftuga/5b552b008c24860c73a14d5c0f36b2c5 to your computer and use it in GitHub Desktop.
GitHub Absolute Date Bookmarklet
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";
});
})();

GitHub Absolute Date Bookmarklet

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment