Skip to content

Instantly share code, notes, and snippets.

@cotyembry
Created May 22, 2017 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cotyembry/be8d63b00edd1d45ed4d7d7f68fdd49a to your computer and use it in GitHub Desktop.
Save cotyembry/be8d63b00edd1d45ed4d7d7f68fdd49a to your computer and use it in GitHub Desktop.
This is a bookmarklet that you can use in a web browser - when you execute it, its intended use is on github.com when you are viewing a commit - it will create an element and add the time it was committed at the very top top of the webpage (it uses document.body.prepend(...) to do that)
javascript:(function() { var el = document.createElement('div'); document.body.prepend(el); el.innerHTML = document.getElementsByTagName('relative-time')[0].getAttribute('title');}() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment