User:Ciencia Al Poder-fduser/monobook.js

// Fix the blog comments fuck-up on RC // by w:User:Ciencia_Al_Poder (function {	var re_ul = /[\x20]/g;

function fixBlogLinksRC { var t = null, a = null, href = null; $(skin=='oasis'?'#WikiaArticle':'#bodyContent').find('span.plainlinks').each(function {			if (this.firstChild.nodeType == 3) { // 3 - TextNode				t = this.firstChild.nodeValue;				t = t.substr(1, t.length-5);				a = document.createElement('a');				try {					href = wgScriptPath+wgScript+'?title='+encodeURIComponent($(this).parents('table').eq(0).next('div').find('a').eq(0).attr('title').replace(re_ul, '_'));				} catch(e) {					href = wgScriptPath+wgScript+'?title='+encodeURIComponent(t.replace(re_ul, '_'));				}				a.setAttribute('href', href);				a.setAttribute('class', 'text');				a.appendChild(document.createTextNode(t));				this.replaceChild(a, this.firstChild);			}		}) };	if (wgNamespaceNumber == -1 && wgCanonicalSpecialPageName == 'Recentchanges') { $(fixBlogLinksRC); } });