Jump to content

User:Shell Kinney/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Shell Kinney (talk | contribs) at 09:13, 14 September 2008 (rm one not working). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:AzaToth/twinkle.js');          //Twinkle
importScript('User:Lupin/recent2.js');            //Lupin's recent changes scripts
importScript('User:Lupin/popups.js');             //Lupin's Popups
importScript('User:Magnus Manske/LinkFixr.js');   //Adding link fixer to toolbox
importScript('User:Henrik/js/afc-helper.js');     //AfC helper
importScript('User:Sander Säde/quickpreview.js'); //Quickpreview
importScript('User:Cameltrader/Advisor.js');      //Wikierrors Advisor
importScript('User:Mr.Z-man/patrollinks.js');     //Newpage patrol links in list
importScript('User:Alex Smotrov/logpage.js');     //Prettify logs - see [[User talk:Alex Smotrov/logpage.js]] for css tags
importScript('User:Ais523/stubtagtab2.js');       //Quick stub categorization
importScript('User:Steel359/protection.js');      //[[User:Steel359/protection.js]]
importScript('User:Betacommand/compare.js');      //User Socks Compare
importScript('User:Ais523/votesymbols.js');       //Highlight Votes
importScript('User:Mr.Z-man/hideClosedAFD.js');   //Hide Closed AFDs
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('Wikipedia:WikiProject Deletion sorting/delsort.js');
importScript('User:Quarl/util.js');
importScript('User:Quarl/wikipage.js');

importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');  //Afd helper

//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);

//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,':');
}

// [[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');


importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]