Show Absolute Time On Reddit Posts

Show reddit posting time as absolute time instead of relative time. Applies for links, comments, and messages.

当前为 2017-04-30 提交的版本,查看 最新版本

// ==UserScript==
// @name        Show Absolute Time On Reddit Posts
// @namespace   ShowAbsoluteTimeOnRedditPosts
// @description Show reddit posting time as absolute time instead of relative time. Applies for links, comments, and messages.
// @version     1.0.1
// @author      jcunews
// @include     https://*.reddit.com/*
// @grant       none
// ==/UserScript==

(function() {
  var eles = document.querySelectorAll(".tagline > time, .head > time"), i, parentNode, ele;
  for (i = eles.length-1; i >= 0; i--) {
    eles[i].classList.remove("live-timestamp");
    eles[i].textContent = eles[i].getAttribute("title");
  }
})();