Last active
May 13, 2017 07:56
-
-
Save kopiro/3732838 to your computer and use it in GitHub Desktop.
Add the time to the story Facebook ticker
This file contains hidden or 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
[].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