Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Reddit - Change user/inbox comments timestamp
- // @author gavin19
- // @description Change timestamp on user pages to show local time instead of '2 weeks ago..'
- // @match http://*.reddit.com/user/*
- // @match https://*.reddit.com/user/*
- // @include http://*.reddit.com/user/*
- // @include https://*.reddit.com/user/*
- // @version 1.00
- // ==/UserScript==
- function replaceTimes() {
- var timeS = document.querySelectorAll('p.tagline time');
- var tagLines = document.querySelectorAll('p.tagline');
- for (var i = 0,leni=timeS.length; i < leni; i++) {
- timeS[i].innerHTML = timeS[i].getAttribute('title');
- };
- for (var j = 0,lenj=tagLines.length; j <lenj ; j++) {
- tagLines[j].innerHTML = tagLines[j].innerHTML.replace("ago", "");
- };
- };
- };
- replaceTimes();
Add Comment
Please, Sign In to add comment