Skip to content

Instantly share code, notes, and snippets.

@kopiro
Last active May 13, 2017 07:56
Show Gist options
  • Save kopiro/3732838 to your computer and use it in GitHub Desktop.
Save kopiro/3732838 to your computer and use it in GitHub Desktop.
Add the time to the story Facebook ticker
[].forEach(document.querySelectorAll('.fbFeedTickerStory'), function(t) {
t.innerHTML += '<i>'+(new Date(t.dataset['ticker-timestamp']*1000).toTimeString().match(/[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]/))+'</i>';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment