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'); mw.loader.localLoad('User:Dentedharp90041/welcome');

/** Based from User:Nixinova/common.css **/ var wellKnown = ['KnightMiner', 'Sealbudsman', 'BDJP007301', 'Blobs2', 'Beans1512', 'FF98sha', 'Nixinova', 'Pokechu22', 'Lxazl5770', 'Corner g', 'Xbony2', 'ItsPlantseed', 'Hubry'], director = ['.zip', 'Alswo9628', 'Archomeda', 'AttemptToCallNil', 'Bloodhit', 'Cba', 'Cero', 'Craft Lawrence', 'CrazyBliep', 'Edenapple', 'GreenStone', 'HEKP0H', 'Hzy980512', 'ILeon', 'Icguy', 'Itouchmasterpro', 'Jimeowan', 'Kingpowl', 'KunaiFire', 'LeGrund', 'Lewandowski', 'Loppi', 'LukiGamer', 'Norrius', 'Pilzsuppe', 'Pochi33', 'Promaster', 'R0B', 'Raffox97', 'Ruansvrn324', 'STS', 'Scaler', 'Shahter', 'Tarne', 'Teksel', 'The Miner', 'TheWombatGuru', 'Tomato', 'TunSha', 'YSelf'], staff = ['Alianin', 'Azxiana', 'Brilovely', 'Cbradberry', 'Cchunn', 'CrsBenjamin', 'Ctipton', 'DashStar1', 'DBTeamWiki', 'Emberimp', 'Encredechine', 'Equazcion', 'Furl', 'Game widow', 'HydraGPEBot', 'Leenephi', 'Majr', 'Malvodion', 'Norrissium', 'OOeyes', 'SandovalCurse', 'Smokie', 'Tagaziel', 'Truckboat', 'Wagnike2', 'Z3ther']

$.each(wellKnown, function(i, v) { $('.mw-userlink[title=\'User:'+v+'\']').css({'padding-left': '19px', 'background': 'url(\'//minecraft.gamepedia.com/media/minecraft.gamepedia.com/thumb/d/d2/Grid_Stone_Pickaxe.png/16px-Grid_Stone_Pickaxe.png\') no-repeat left center'}) }); $.each(director, function(i, v) { $('.mw-userlink[title=\'User:'+v+'\']').css({'padding-left': '19px', 'background': 'url(\'//minecraft.gamepedia.com/media/minecraft.gamepedia.com/thumb/1/1d/Grid_Iron_Pickaxe.png/16px-Grid_Iron_Pickaxe.png\') no-repeat left center'}) }); $.each(staff, function(i, v) { $('.mw-userlink[title=\'User:'+v+'\']').css({'padding-left': '12px', 'background': 'url(\'//minecraft.gamepedia.com/media/minecraft.gamepedia.com/6/6b/CurseFlame.png\') no-repeat left center'}) });

$('.mw-userlink[title=\'User:MinecraftPhotos4U\']').css({'padding-left': '19px', 'background': 'url(\'//upload.wikimedia.org/wikipedia/en/thumb/9/90/Microsoft_Photos_Icon_on_Windows_10.png/16px-Microsoft_Photos_Icon_on_Windows_10.png\') no-repeat left center'}); $('.mw-userlink[title=\'User:Dentedharp90041\']').css({'padding-left': '19px', 'background': 'url(\'//minecraft.gamepedia.com/media/minecraft.gamepedia.com/thumb/1/12/Dentedharp90041.png/16px-Dentedharp90041.png\') no-repeat left center'});

});