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.localCSSLoad('User:Majr/Prism'); mw.loader.interCSSLoad('MediaWiki:Gadget-scrollUpButton', 'minecraft-ru'); mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

//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/Prism'); mw.loader.localLoad('User:Majr/inputCounter'); mw.loader.interLoad('MediaWiki:Gadget-scrollUpButton', 'minecraft-ru'); mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); mw.loader.localLoad('User:Dentedharp90041/codemirror')

if(mw.config.get('wgTitle') == 'User list' && mw.config.get('wgNamespaceNumber') == -1) $('html, body').animate({ scrollTop: $(document).height }, 50); });