User:Wiki13/common.js

/** * Makes JavaScript loading easier with importAnyScript(' ',' ',' '); * @author Mike.lifeguard, 2009 - 2013 */ function importAnyScript(lang,family,script) { // use mw.loader.load with the full-qualified source, else importScript; runs in the context of the remote wiki, finding nothing. mw.loader.load('//'		+ encodeURIComponent(lang) + '.'		+ encodeURIComponent(family) + '.org/w/index.php?title='		+ encodeURIComponent(script) + '&action=raw&ctype=text/javascript'); }

// Global JavaScript importAnyScript('meta','wikimedia','User:Wiki13/global.js')

// userMessages mw.loader.load( '//www.mediawiki.org/w/index.php?title=User:Shanmugamp7/userMessages.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );