User:Nixinova/common.js

/* Scripts */

// Custom title shortcuts window.shortcut_replacements = [ ['^\\bje\\b', 'Java Edition '], ['^\\bbe\\b', 'Bedrock Edition '], ['^\\bee\\b', 'Education Edition '], ['^\\bnn\\b', 'User:Nixinova'], ['\\bpd\\b', 'Pending deletion'] ];

// Load scripts var scripts = [ //'User:Nixinova/Gadgets.js', 'User:Nixinova/version-autocorrect.js', 'User:Nixinova/namespace-shortcuts.js', 'User:Nixinova/Newest_article.js', //'User:Nixinova/FTB_note.js', // OneClickArchiver 'User:Technical_13/Scripts/OneClickArchiver.js', // JS Wiki Browser 'User:Joeytje50/JWB.js/load.js', ]; for (var i in scripts) { mw.loader.load('/index.php?title=' + scripts[i] + '&action=raw&ctype=text/javascript'); }

/* Style */

// Fix fandom stuff var styles = [ 'Mediawiki:Gadget-site-styles.css', 'Mediawiki:Gadget-sound.css', 'Mediawiki:Gadget-sound-styles.css' ]; var css = ''; for (var i in styles) { css += '@import url("/index.php?title=' + styles[i] + '&action=raw&ctype=text/css");\n'; } $('head').append('' + css + ' ');

// Collapse headers $('h2').removeClass('open-block'); $('h2 + div').removeClass('open-block').attr('aria-expanded','false').attr('aria-pressed','false'); // Remove Fandom stuff $('footer').remove;