function impart(article){importArticle({type:'script',article:article});}impart('w:c:dev:LWN/code.js');if(mw.config.get('wgPageName')==="My_Little_Pony_Fan_Labor_Wiki:Duplicate_images"){impart('w:c:dev:DupImageList/code.js');}if($('.rightsrecord').length){impart('UserRightsRecord/code.js');}if({'User':1,'User_blog':1,'User_talk':1}[mw.config.get('wgCanonicalNamespace')]||mw.config.get('wgPageName').indexOf('Special:Contributions')!==-1){impart('MediaWiki:Common.js/userRightsIcons.js');}if(mw.config.get('wgPageName')==='Special:BlankPage'&&mw.util.getParamValue('blankspecial')){impart('MediaWiki:Common.js/'+{'deadvideos':'DeadVideos.js'}[mw.util.getParamValue('blankspecial')]);}$(function(){var newTitle=$("#title-meta").html();if(!newTitle)return;var edits=$("#user_masthead_since").text();$(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(newTitle);$("#user_masthead_head h2").html(newTitle+"<small id='user_masthead_since'>"+edits+"</small>");});$(function(){if(window.
disableUsernameReplace||mw.config.get('wgUserName')===null)return;$('span.insertusername').html(mw.config.get('wgUserName'));});if($('.emote-template').length||$('#WikiaArticleComments').length){$(function(){function emotify($this){var emote=$this.text();var url=emotes.match(new RegExp('\\n\\*\\s*(.*)\\n(?:\\*\\*.*\\n)*(?=.*'+emote.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,'\\$1')+')','i'));if(url){url=url[1];$this.html($('<img />',{'src':url,'alt':emote,'height':19,'width':19}));}}var emotes='';$.getJSON('/api.php?action=query&prop=revisions&titles=MediaWiki:Emoticons'+'&rvprop=content&format=json',function(data){emotes=data.query.pages['9653'].revisions[0]['*'];$('.emote-template').each(function(){emotify($(this));});});$('#WikiaArticleFooter').on('DOMNodeInserted',function(){if($('.emote-template').length===$('.emote-template img').length){return;}$('#WikiaArticleFooter .emote-template').each(function(){if(!($(this).children('img').length)){emotify($(this));}});});});}$(function(){if($(
".toc-multicol #toc").size()!==0){$(function(){var x,tdToAppend,listToAppend,showtext='show',hidetext='hide';$("#toc").css("width","100%");$("#toc ul").html("<table><tr><td>"+$("#toc ul").html()+"</td></tr></table>");var liList=$("#toc ul li").toArray();$('table#toc ul').remove();if(liList.length%3===0){x=0;}else{x=3-(liList.length%3);}var perCol=(liList.length+x)/3;for(var colNum=0;colNum<3;colNum++){listToAppend="";for(var i=0+(colNum*perCol);i<(perCol*(colNum+1));i++){if(typeof(liList[i])=="undefined"){break;}tempElement=document.createElement("div");tempElement.appendChild(liList[i]);listToAppend+=tempElement.innerHTML;}tdToAppend+='<td style="vertical-align: top; width: 33%;"><ul><table><tbody><tr><td><table><tbody><tr><td><table><tbody><tr><td>'+listToAppend+'</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></ul></td>';}$('#toc tbody').append('<tr>'+tdToAppend+'</tr>');$('#toc tbody tr:eq(0) td').attr("colspan","3");var indentFactor=10;$("head").
append("<style>.toclevel-1{padding-left: "+(indentFactor*1)+"px !important}.toclevel-2{padding-left: "+(indentFactor*2)+"px !important}.toclevel-3{padding-left: "+(indentFactor*3)+"px !important}.toclevel-4{padding-left: "+(indentFactor*4)+"px !important}</style>");$("#togglelink").off("click").click(function(e){e.preventDefault();$('#toc ul').slideToggle("fast");if($(this).text()===showtext){$(this).text(hidetext);}else{$(this).text(showtext);}});if(!$('#toc ul').is(':hidden')&&$('#togglelink').text()===showtext){$('#togglelink').text(hidetext);}});}});if($("div.profile-image img.lzyPlcHld").length>0){$("div.profile-image img.lzyPlcHld").each(function(){$(this).attr("src",$(this).attr("data-src"));});}if(mw.config.get('wgPageName').indexOf('Special:MovePage/File:')!==-1){$('input#wpLeaveRedirect').removeAttr('checked');}if(mw.config.get('wgAction')==='protect'){$('#mwProtectUnchained').removeAttr('checked');}$(document).ready(function(){var redlink=window.location.hash;if(mw.config.
get('wgPageName')==='Help:Red_links'&&redlink!==''){redlink=redlink.slice(1);if(redlink.charAt(0)===':'){redlink=redlink.substring(1);}if(redlink.substr(0,5)!=='File:'){redlink=redlink.replace(/\./g,'%');}else{var head=redlink.substring(0,redlink.lastIndexOf('.'));var tail=redlink.substring(redlink.lastIndexOf('.'));redlink=head.replace(/\./g,'%')+tail;}$("#insertredlink a").attr("href","/wiki/"+decodeURIComponent(redlink).replace(/\?/g,'%3F')+"?action=history");$("#insertredlink a").css("font-weight","bold");}});$(function(){var $a=$('a[data-id="edit"]');if($a.length&&$a.attr('href').indexOf('Special:SignUp')!==-1){$a.parent().children('ul.WikiaMenuElement').prepend('<li><a href="/wiki/'+mw.config.get('wgPageName')+'?action=edit">View source</a></li>');}});$(document).ready(function(){if(mw.config.get('wgCanonicalSpecialPageName')==="Wantedfiles"){$(".mw-spcontent li").each(function(){$(this).html($(this).html().replace(/[^\x20-\x7E]+/g,""))});}});$(function(){if($('#IRClogin').length
||$('#CVNIRClogin').length){var nick='';if(mw.config.get('wgUserName')===null){nick='Wikian'+Math.floor(Math.random()*100);}else{nick=mw.config.get('wgUserName').replace(/ /g,"_");}$('#IRClogin').html('<iframe src="http://webchat.freenode.net/?nick='+nick+'&channels=reddit-mlp&prompt=true" width="660" height="400" style="border:0;"></iframe>');$('#CVNIRClogin').html('<iframe src="http://webchat.freenode.net/?nick='+nick+'&channels=cvn-wikia-mlp&prompt=true" width="660" height="400" style="border:0;"></iframe>');}});if((mw.config.get("wgAction")==="edit"||mw.config.get("wgAction")==="submit")&&mw.config.get('wgCanonicalNamespace')==="File"&&!(/.(png|gif|jp(e)?g|ogg|pdf)/gi.test(mw.config.get('wgPageName')))&&mw.config.get('wgUserGroups').indexOf('sysop')===-1){$("#EditPageHeader").after(
'<div style="background-color: red; color:white; display:block; padding: 5px 0px; text-align: center; font-weight: bold; font-size: 110%;">Please do not add descriptions to videos unless it is necessary such as for citing or sourcing purposes.</div>');}if(mw.config.get('wgCanonicalNamespace')==="Template"&&!$('#wpTextbox1').val()&&(mw.config.get('wgAction')==="edit"||mw.config.get('wgAction')==="submit")&&mw.config.get('wgUserGroups').indexOf('sysop')===-1){$("#EditPageHeader").after('<div style="background-color: red; color:white; display:block; padding: 5px 0px; text-align: center; font-weight: bold; font-size: 110%;">Please do not create user templates in the Template namespace. If this is going to be a user or signature template, <a href="/wiki/User:'+mw.config.get('wgUserName')+'/'+mw.config.get('wgPageName').slice(9)+'?action=edit">please create it here instead</a>.</div>');};;;mw.loader.state({"site":"ready"});

/* cache key: mlpfanart:resourceloader:filter:minify-js:7:e67fd3eeefe0fd762e7f5d5798e0ce09 */