Jump to content

User:Makemi/monobook.js

From Wikipedia, the free encyclopedia
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.
function externISBN() {
  for (var i = 0; i < document.links.length; i++) 
    {       
         var ln = document.links[i].href.match(/isbn=(.*)/);
         if (ln) {
           document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1;
         }
    }

}

$(externISBN);


//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

//hideOwn

$(function () {

 for (var i=0; i<document.links.length; ++i) {
   if (document.links[i].href.indexOf('Special:Watchlist')>0) {
     document.links[i].href+='?hideOwn=1';
     break;
   }
 }

});

// Script from [[User:AndyZ/peerreviewer.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js' 
             + '&action=raw&ctype=text/javascript');

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


//function to handle dates:

winc('User:Bobblewik/monobook.js/dates.js');


//function to handle units:

winc('User:Bobblewik/monobook.js/unitformatter.js');

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AndyZ/monobook.js/checklist.js&action=raw&ctype=text/javascript');

importScript("User:Lupin/recent2.js");