Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This simple js bookmark let you display the correct commit timestamp at github
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