Last active
November 20, 2024 02:24
This simple js bookmark let you display the correct commit timestamp at github
This file contains 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() { | |
var relativeTimeElements = window.document.querySelectorAll("relative-time"); | |
relativeTimeElements.forEach(function(timeElement){ | |
timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title; | |
}) | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Chrome, I had to change the shadow root of the innerText to get the desired result.