User:Neier/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
// See also: [[Wikipedia:WikiProject_User_scripts/Scripts]]
//
// [[Wikipedia:Tools/Navigation_popups]]
// [[User:Lupin/popups.js]]
 
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
//simplePopups=true;
//popupStructure='menus';
 
popupFixRedirs=true;
popupRedirAutoClick='wpPreview';
 
popupFixDabs=true;
 
popupPreviews=false;
 
popupImages=false;
 
//Create 'winc' function:
function winc(s) {
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=' + s
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
 
// [[User:Neier/monobook.js/japandelete.js]]
winc('User:Neier/monobook.js/japandelete.js');
 
// [[Wikipedia:WikiProject User scripts/Scripts/User Contribs Tabs]]
winc('Wikipedia:WikiProject User scripts/Scripts/User Contribs Tabs');
 
// [[Wikipedia: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": "{{DEFAULTSORT:",
    "tagClose": "}}",
    "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) {
     addPortletLink('p-cactions', 'javascript:dodeletion()', 'Japan del', 'ca-Japandeletion', 'Japan del', '', document.getElementById('ca-history'));
 
// Comment out dissolution prefecture tab
//     addPortletLink('p-cactions', 'javascript:wpTextboxPrefCatReplace()', 'prefreplace', 'ca-prefreplace', 'Replace dissolve pref cats', '}', document.getElementById('ca-fbreplace'));
 
     addPortletLink('p-cactions', 'javascript:wpTextboxJName()', 'JName', 'ca-jname', 'JName Template', '}', document.getElementById('ca-recat'));
 
 
     addPortletLink('p-cactions', 'javascript:wpTextboxCatReplace()', 'recat', 'ca-recat', 'Recategorize', '}', document.getElementById('ca-fbreplace'));
 
 
     addPortletLink('p-cactions', 'javascript:wpTextboxFBReplace()', 'soccer', 'ca-fbreplace', 'Subst: fc/nft templates', '}', document.getElementById('ca-format'));
    addPortletLink('p-cactions', 'javascript:format()', 'format', 'ca-format', 'Format article', '', document.getElementById('ca-defaultsort'));
    addPortletLink('p-cactions', 'javascript:defaultsort()', 'defaultsort', 'ca-defaultsort', '', '', document.getElementById('ca-purge'));
   }
});