Skip to content

Instantly share code, notes, and snippets.

@Qofar
Last active August 29, 2015 14:05
Show Gist options
  • Save Qofar/70440709d4af7fbfb60f to your computer and use it in GitHub Desktop.
Save Qofar/70440709d4af7fbfb60f to your computer and use it in GitHub Desktop.
Tweetdeckの時刻表示を絶対時刻にするUserScript
// ==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