Thread:Lamiah2o/@comment-5996418-20130715151109/@comment-5996418-20130716130000

function removeComment{ var pages=["Lugia/Lugia_5","both","Testa","discussion"]; var page=document.URL; var l=0; for(var d=0;d<page.length;d++){ if(page.substr(d).indexOf("/")==0) l++; if(l==4){ page=page.substr(d); break; }	} page=page.substr(1); l=-2; for(var e=0;e<page.length;e++){ if(page.substr(e).indexOf("#")==0) l=e; else if(page.substr(e).indexOf("?")==0) l=e; }	if(l!=-2) page=page.substr(0,l); for(var s=0;s<pages.length;s++){ if(page.indexOf(pages[s])+pages[s].length==page.length){ var i,h,o,p; var c=0; var d=pages[s+1]; if(d.toLowerCase=="discussion"){ h=window.setInterval(function{if(document.getElementById("RelatedForumDiscussion")) var disc=document.getElementById("RelatedForumDiscussion");if(disc){disc.parentNode.removeChild(disc);window.clearInterval(h);}c++;if(c==30) window.clearInterval(h);},1000); }else if(d.toLowerCase=="comments"){ i=window.setInterval(function{if(document.getElementById("WikiaArticleComments")) var comments=document.getElementById("WikiaArticleComments");if(comments){comments.parentNode.removeChild(comments);window.clearInterval(i);}c++;if(c==30) window.clearInterval(i);},1000); }else{ o=window.setInterval(function{if(document.getElementById("WikiaArticleComments")) var comments=document.getElementById("WikiaArticleComments");if(comments){comments.parentNode.removeChild(comments);window.clearInterval(o);}c++;if(c==30) window.clearInterval(o);},1000); p=window.setInterval(function{if(document.getElementById("RelatedForumDiscussion")) var disc=document.getElementById("RelatedForumDiscussion");if(disc){disc.parentNode.removeChild(disc);window.clearInterval(p);}c++;if(c==30) window.clearInterval(p);},1000); }			break; }		s++; } } addOnloadHook(removeComment);