User:Shell Kinney/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.
//Twinkle
importScript('User:AzaToth/twinkle.js');
//Lupin's recent changes scripts
importScript('User:Lupin/recent2.js');
// [[User:Dschwen/highlightredirects.js]] - Redirect highlights
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
importScript('User:Alex Smotrov/wlunwatch.js');
// [[User:Henrik/afc-helper]] - easy decline AfC
importScript('User:Henrik/js/afc-helper.js');
//Quickpreview
importScript('User:Sander Säde/quickpreview.js');
//Wikierrors Advisor
importScript('User:Cameltrader/Advisor.js');
//Wachlist User's contributions
importScript('User:Tra/usewatchlist.js');
//Newpages patrol
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
//Hook ISBN links to Googlebooks
function externISBN() {
 
  var magicURL = "http://books.google.com/books?as_isbn=MAGICNUMBER";
 
  var magicRegex = /MAGICNUMBER/ig;
  if(wgPageName != "Special:Booksources" && wgPageName != "Wikipedia:Book_sources"){
    for (var i = 0; i < document.links.length; i++) {       
      if( document.links[i].href.match(/isbn=(.*)/) ) {
        document.links[i].href=magicURL.replace(magicRegex, RegExp.$1);
      }
    }
  }
 
}
 
addOnloadHook(externISBN);
//Prettify logs - see [[User talk:Alex Smotrov/logpage.js]] for css tags
importScript('User:Alex Smotrov/logpage.js');
//Quick stub categorization
importScript('User:Ais523/stubtagtab2.js');
//Friendly twinkle
importScript('User:Ioeth/friendly.js');
FriendlyConfig = {
        watchWelcomes                   :       false,
        markWelcomesAsMinor             :       false,
        watchTaggedPages                :       false,
        quickWelcomeMode                :       "semiauto"
};
// [[User:Steel359/protection.js]]
importScript('User:Steel359/protection.js');
//Status Changer
importScript('User:Voice_of_All/Addtabs/monobook.js');
importScript('User:Misza13/statusChanger.js');
 
// Make Project cats go to article instead of talk
function catSwapButton() {
  if(document.title.indexOf('Category:' == 0)) {
    addPortletLink('p-cactions','javascript:catSwap();','De-Talkify','ca-catswap','change category links from talk pages to article pages');
  }
}
addOnloadHook(catSwapButton)
 
function catSwap() {
  var cat = document.getElementById('mw-pages');
  cat.innerHTML = cat.innerHTML.replace(/Talk\:/g,'').replace(/[_\s]talk\:/g,':');
}
//FUR helper
importScript('User:AWeenieMan/furme.js');