MediaWiki:Common.js

/** New and improved, downsized version
 * Reports of functionality loss or bugs should go to User talk:TK-999
 * Active from 2012-04-25 (April 25, 2012)

importArticles({	type: "script",	articles: [		"w:dev:AjaxRC/code.js",		"w:dev:ShowHide/code.js",		//                   Runescape Wiki code		// ============================================================		// Standard edit summaries		// Source Editor - Original with slight label change		// Visual Editor - Modified by Casualty Wiki from here		// with slight label change		// ============================================================		"w:runescape:MediaWiki:Common.js/standardeditsummaries.js"	] }); ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log"];

/** * Adds Template:Information to the information box on Special:Upload * @author Jack Phoenix  * @date June 7, 2010 * @modified TK-999 2012-04-25 **/ if( wgCanonicalSpecialPageName == 'Upload' ) { $(function{ $('#wpUploadDescription').val('\=\=Summary\=\=\n'); }); } /** IRC webchat **/
 * @source http://vstf.wikia.com/wiki/MediaWiki:Common.js
 * @contributors http://vstf.wikia.com/wiki/MediaWiki:Common.js?action=history

function onloadhookcustom { var replace = document.getElementById("irc-portal"); if (replace != null) { replace.innerHTML=' '; if (window.attachEvent) { window.attachEvent("onbeforeunload",confirmexitjrchat); } else { window.onbeforeunload = confirmexitjrchat; } } }

window.onload = onloadhookcustom;

// Dies Irae $(function{ var bomb = document.getElementById("exitus_lethalis"); if (bomb) { document.getElementById("WikiaArticleComments").style.display="none"; document.getElementById("article-comm-form").action="foo"; }});