MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// BEGINNING: JavaScript for placing the fair use rationale template inside the summary box on Special:Upload. Code by "wikipedia:User:Pinky49", created and coded specifically for Duty & Valour. Modified by Yyp for use on Bleach Wiki. Code credited to Bleach Wiki for use on Grisaia Wiki. function preloadUploadDesc { if (wgPageName.toLowerCase != 'special:upload') { return; } document.getElementById('wpUploadDescription').appendChild(document.createTextNode("")); } addOnloadHook (preloadUploadDesc) // ****** END: JavaScript for Special:Upload ******

/* Show/Hide */ importScriptURI('http://dev.wikia.com/wiki/MediaWiki:ShowHide/code.js?action=raw&ctype=text/javascript');

/* UTC Clock */ importScriptURI('http://dev.wikia.com/wiki/MediaWiki:DisplayClock/code.js?action=raw&ctype=text/javascript');

/* Code to allow CSS on pages */ /* addOnloadHook(function {$('head').append('' + $('#css').html + ' ');}); */