User:Technical 13/common.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
m Debugging...
Technical 13 (talk | contribs)
m Debugging...
Line 18:
 
/* Refresh my WatchList page when viewing every minute */
if (document.___location.href == "http://en.wikipedia.org/wiki/Special:Watchlist") {
setTimeout(function(){___location = ''},60000)}
var timeNow = new Date();
$('td.mw-enhanced-rc').css({fontWeight: 'bold', fontSize: '12pt'});
var minNow = timeNow.getMinutes();
var minNow = minNow - 5;
timeNow.setMinutes(minNow);
var postTime = $('td.mw-enhanced-rc').html();
var postTime = postTime.replace("     ", "");
var postTime = postTime.replace(" ", "");
var postTime = postTime.split(':', "2");
var postHour = postTime[0];
var postMin = postTime[1];
var timePost = new Date();
timePost.setHours(postHour);
timePost.setMinutes(postMin);
if (timePost >= timeNow) {$('td.mw-enhanced-rc').css({fontWeight: 'bold', fontSize: '12pt'});
}