// ==UserScript== // @namespace http://mrob.com/time/scripts-beta // @name Absolute dates and times on Reddit pages // @description Shows absolute dates and times on each comment on a Reddit page // @author Robert Munafo // @version 20161209.0300 // @downloadURL http://mrob.com/time/scripts-beta/reddit-show-dates.user.js.txt // @include https://reddit.com/* // @include https://m.reddit.com/* // @include https://np.reddit.com/* // @include https://old.reddit.com/* // @include https://www.reddit.com/* // @match https://reddit.com/* // @match https://m.reddit.com/* // @match https://np.reddit.com/* // @match https://old.reddit.com/* // @match https://www.reddit.com/* // @grant none // ==/UserScript== // REVISION HISTORY: // // 20141202.1808 First version. // 20161031.0007 Set colours // 20161203.2129 Add @match keywords and showDates2, try harder to make it run // 20161209.0300 Add tagMobile // 20181008.2055 Include old.reddit.com // 20200515.0208 Add short version from jcunews var showDates = function (D, dbg_tag) { console.debug('showDates ' + dbg_tag); var i, f, j, e; var tms = D.getElementsByTagName("time"); var nt = tms.length; for (i=0; i time, .head > time"), i, parentNode, ele; // for (i = eles.length-1; i >= 0; i--) { // eles[i].classList.remove("live-timestamp"); // /* Change '=' to '+=' if you still want the vague relative time */ // eles[i].textContent = " (" + eles[i].getAttribute("title") + ")"; // } // })();