User:Neier/monobook.js

// See also: WikiProject_User_scripts/Scripts // // Tools/Navigation_popups // User:Lupin/popups.js

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

//simplePopups=true; //popupStructure='menus';

popupFixRedirs=true; popupRedirAutoClick='wpPreview';

popupFixDabs=true;

popupPreviews=false;

popupImages=false;

//Create 'winc' function: function winc(s) { document.write(' '); }

// User:Neier/monobook.js/japandelete.js winc('User:Neier/monobook.js/japandelete.js');

// WikiProject User scripts/Scripts/User Contribs Tabs winc('Wikipedia:WikiProject User scripts/Scripts/User Contribs Tabs');

// WikiProject User scripts/Scripts/Replace winc('Wikipedia:WikiProject User scripts/Scripts/Replace');

// User:Neier/monobook.js/Formatter winc('User:Neier/monobook.js/Formatter');

// User:Neier/monobook.js/defaultsorting.js winc('User:Neier/monobook.js/defaultsorting.js');

// User:Neier/monobook.js/prefecture winc('User:Neier/monobook.js/prefecture');

// User:Neier/monobook.js/soccer winc('User:Neier/monobook.js/soccer');

// User:Neier/monobook.js/recat.js winc('User:Neier/monobook.js/recat.js');

// User:Neier/monobook.js/jname.js winc('User:Neier/monobook.js/jname.js');

/* Insert DEFAULTSORT with graphic button*/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/d/d3/Button_definition_list.png", "speedTip": "DEFSORT", "tagOpen": "", "sampleText": "REPLACEME"}; };

// This is where the tabs should be added (tweak order as desired, by changing the last field (the item which it should be before)) addOnloadHook(function {    if (document.forms.editform) {     mw.util.addPortletLink('p-cactions', 'javascript:dodeletion', 'Japan del', 'ca-Japandeletion', 'Japan del', '', document.getElementById('ca-history'));

// Comment out dissolution prefecture tab //    mw.util.addPortletLink('p-cactions', 'javascript:wpTextboxPrefCatReplace', 'prefreplace', 'ca-prefreplace', 'Replace dissolve pref cats', '}', document.getElementById('ca-fbreplace'));

mw.util.addPortletLink('p-cactions', 'javascript:wpTextboxJName', 'JName', 'ca-jname', 'JName Template', '}', document.getElementById('ca-recat'));

mw.util.addPortletLink('p-cactions', 'javascript:wpTextboxCatReplace', 'recat', 'ca-recat', 'Recategorize', '}', document.getElementById('ca-fbreplace'));

mw.util.addPortletLink('p-cactions', 'javascript:wpTextboxFBReplace', 'soccer', 'ca-fbreplace', 'Subst: fc/nft templates', '}', document.getElementById('ca-format')); mw.util.addPortletLink('p-cactions', 'javascript:format', 'format', 'ca-format', 'Format article', '', document.getElementById('ca-defaultsort')); mw.util.addPortletLink('p-cactions', 'javascript:defaultsort', 'defaultsort', 'ca-defaultsort', , , document.getElementById('ca-purge')); } });