User:ITechieGamer/common.js

$(function {

mw.loader.localLoad = function(url) { return mw.loader.load('/index.php?title='+url+'.js&action=raw&ctype=text/javascript') }; mw.loader.localCSSLoad = function(url) { return mw.loader.load('/index.php?title='+url+'.css&action=raw&ctype=text/css', 'text/css') }; mw.loader.interLoad = function(url, wiki) { return mw.loader.load('//'+wiki+'.gamepedia.com/index.php?title='+url+'.js&action=raw&ctype=text/javascript') }; mw.loader.interCSSLoad = function(url, wiki) { return mw.loader.load('//'+wiki+'.gamepedia.com/index.php?title='+url+'.css&action=raw&ctype=text/css', 'text/css') };

//CSS mw.loader.interCSSLoad('MediaWiki:Gadget-scrollUpButton', 'minecraft-ru');

//JS if(mw.config.get('wgTitle') == mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') == 2) mw.loader.localLoad('User:Majr/editcounter'); mw.loader.localLoad('User:Majr/inputCounter'); mw.loader.interLoad('MediaWiki:Gadget-scrollUpButton', 'minecraft-ru'); });