User:Nixinova/Gadgets.js

/*Import using mw.loader.load('/index.php?title=User:Nixinova/Gadgets.js&action=raw&ctype=text/javascript');

// Scripts

var scripts = [ 'Mobile.js', 'Gadget-site.js', 'Gadget-sound.js', 'Gadget-spriteEdit.js', 'Gadget-spriteEditLoader.js', 'Gadget-classicToolbarButtons.js', 'Gadget-protectionLocks.js', 'Gadget-revisionPatrol.js', 'Gadget-editableRollback.js', 'Gadget-togglePatrollerRequests.js', 'Gadget-versionlist.js', 'Gadget-ImageForeignUseCheck.js', 'Gadget-editableRollback.js', 'Gadget-versionlist.js' ];

for (var i in scripts) { mw.loader.load('/index.php?title=Mediawiki:' + scripts[i] + '&action=raw&ctype=text/javascript'); }

// Styles

var styles = [ 'Mobile.css', 'Gadget-dungeonsWiki.css', 'Gadget-earthWiki.css', 'Gadget-site-styles.css', 'Gadget-sound.css', 'Gadget-sound-styles.css', 'Gadget-spriteEdit.css', 'Gadget-spriteEditMCW.css', 'Gadget-highlightDeprecatedSprites.css', 'Gadget-versionlist.css', 'Gadget-editableRollback.css', 'Gadget-revisionPatrol.css', 'Gadget-editableRollback.css', 'Gadget-versionlist.css', 'Gadget-hideProLabel.css', 'Widget:SpriteDoc.css' ]; var css = '';

/*for (var i in styles) { css += '@import url("/index.php?title=Mediawiki:' + styles[i] + '&action=raw&ctype=text/css");\n'; }//*/

$('head').append('' + css + ' ');