User:Technical 13/common.js

/* Fix for Shades misspelling of Mjoll */ $('a[title^="User:Mjol"]').each(function {   this.innerHTML = this.innerHTML.replace("User:Mjoll", "User:Mjol");    this.innerHTML = this.innerHTML.replace("User:Mjol", "User:Mjoll");    this.title = this.title.replace("User:Mjol (page does not exist)", "User:Mjoll");    this.href = this.href.replace("/edit/User:Mjol?redlink=1", "/page/User:Mjoll"); });

/* Temporary name change mechanic until Extension:User Merge and Delete properly updates the edit count */ $('h1[id^="title"]').each(function {   this.innerHTML = this.innerHTML.replace("User:Technical 13", "User:ShoeMaker"); }); $('a[href^="/page/User:Technical_13"]').each(function {   this.innerHTML = this.innerHTML.replace("Technical 13", "ShoeMaker"); });

/* Refresh my WatchList page when viewing every minute */ if (document.location.href == "http://ddowiki.com/page/Special:Watchlist") { setTimeout(function{location = ''},60000); /* */   importScript( 'User:Joenuts/Watchlist.js' ); /*   var timeNow = new Date; var minNow = timeNow.getMinutes; var minNow = minNow - 5; timeNow.setMinutes(minNow); var postTime = $('td.mw-enhanced-rc').html; var nbsp = (postTime.match(/ /g)||[]).length for (i=0;iN ', ''); var postTime = postTime.replace('m ', ''); var postTime = postTime.replace('b ', ''); 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); var timePost = timePost.getTime; var timeNow = timeNow.getTime; if (timePost >= timeNow) { var enhRC = $('td.mw-enhanced-rc').html; $('td[class^="mw-enhanced-rc"]').each(function {this.innerHTML = this.innerHTML.replace(enhRC, ' ' + enhRC + ' ');}); }*/ }