MediaWiki:Common.js

/* */

/* Include Global Anime-Common.js Information */ importScriptURI('http://anime.wikia.com/index.php?title=MediaWiki:Anime-Common.js&action=raw&ctype=text/javascript&dontcountme=s&smaxage=86400&templates=expand');

// ArchiveTool var archiveListTemplate = 'ArchiveList'; var archivePageTemplate = 'ArchivePage'; importScriptPage('ArchiveTool/code.js', 'dev');

$(function { if ( skin === "monaco" ) {    var $siteNotice = $('#siteNotice');    $siteNotice.find('script').remove;    $siteNotice.insertBefore('#article');    $siteNotice.find('table table').appendTo($siteNotice);    $siteNotice.find('#mw-dismissable-notice').remove;  } else {    $('#mw-dismissable-notice > tbody > tr > td:last').remove;  }  if( ( wgAction === "edit" && wgNamespaceNumber > -1 && wgNamespaceNumber % 2 === 0 ) || wgPageName === "Special:CreatePage" )    $(" Do not add new manga information to the wiki until the entire chapter is available. ")      .prependTo('#bodyContent');  if( wgAction === "edit" && wgNamespaceNumber === 8 && wgTitle === "Monaco-sidebar" ) {    $("#bodyContent #wikiPreview ul li").each(function { var n = this; var texts = this.firstChild.nodeValue.replace(/^\s+/, "").replace(/\s+$/, "").split("|"); n.removeChild(n.firstChild); var before = n.firstChild; texts.forEach(function(text, i) {       if ( i )          n.insertBefore(document.createTextNode("|"), before);        if ( /[#:]/.test(text) )          n.insertBefore(document.createTextNode(text), before);        else          n.insertBefore($("").attr({href: wgArticlePath.replace("$1", "MediaWiki:"+text.replace(/^\s+/, ""))}).text(text)[0], before);      }); }); } });

/* */