User:Nixinova/common.js

/* Scripts */

// Custom title shortcuts window.shortcut_replacements = [ ['^je ', 'Java Edition '], ['^be ', 'Bedrock Edition '], ['^ee ', 'Education Edition '], ['^nn ', 'User:Nixinova'], ['\\bpd ', 'Pending deletion'] ];

// Load scripts var scripts = [ 'User:Nixinova/gpmobile.js', //'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'); }

// JS Wiki Browser mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

/* Style */

var styles = [ 'User:Nixinova/gpmobile.css', // Fix fandom stuff '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');

// Easier nav $('#mw-page-base').before(`Nav`);

// Remove Fandom stuff $('footer').remove;