Last active
August 29, 2015 14:05
-
-
Save Qofar/70440709d4af7fbfb60f to your computer and use it in GitHub Desktop.
Tweetdeckの時刻表示を絶対時刻にするUserScript
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
// ==UserScript== | |
// @name Tweetdeck enable ABSOLUTE TIME | |
// @include https://tweetdeck.twitter.com/* | |
// @version 1.1 | |
// @license MIT License | |
// ==/UserScript== | |
(function(w) { | |
var TD = w.TD; | |
TD.util.prettyDate = function(e) { | |
return e.getFullYear() | |
+ "/" | |
+ TD.util.padLeadingZero(e.getMonth() + 1) | |
+ "/" | |
+ TD.util.padLeadingZero(e.getDate()) | |
+ " " | |
+ TD.util.padLeadingZero(e.getHours()) | |
+ ":" | |
+ TD.util.padLeadingZero(e.getMinutes()) | |
+ ":" | |
+ TD.util.padLeadingZero(e.getSeconds()); | |
}; | |
TD.util.prettyTimeString = TD.util.prettyDate; | |
})(unsafeWindow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment