Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save PhilippGrulich/7051832b344d4cbd30fbfd68524baa38 to your computer and use it in GitHub Desktop.
Save PhilippGrulich/7051832b344d4cbd30fbfd68524baa38 to your computer and use it in GitHub Desktop.
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