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




// install [[User:Cacycle/diff]] text diff code
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js'
+ '&action=raw&ctype=text/javascript');

// install [[User:Pilaf/Live_Preview]] page preview tool
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js'
+ '&action=raw&ctype=text/javascript');

// install [[User:Cacycle/wikEd]] rich text editor
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript');





// [[User:Henrik/sandbox/google-search]] (please include this line)
function install_search()
{
document.getElementById('searchBody').innerHTML+='<div>'+
'<FORM method=get action="http://www.google.com/search">'+
'<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
'<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
'<input type="hidden" name="domains" value="en.wikipedia.org" />'+
'<input type=radio name=sitesearch value="">Web'+
'<input type=radio name=sitesearch value="en.wikipedia.org" checked />WP'+
'<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';
}

$(install_search);




 // [[User:Jsimlo/shortcuts.js]]
 mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Jsimlo/shortcuts.js' 
             + '&action=raw&ctype=text/javascript');
 
 function shortcutsInit ()
 {
  
  shortcutsAddLink ('Gobernantes Pre-Virreinales', ':es:Gobernantes pre-virreinales en Nueva España');
  shortcutsAddLink ('New Spain Viceroys', 'List of Viceroys of New Spain');
  shortcutsAddLink ('Virreyes de Nueva España', ':es:Virreyes_de_Nueva_España');
  shortcutsAddLink ('New Spain Intendentes', 'Intendente');
  shortcutsAddLink ('Mexican Presidents', 'List of Presidents of Mexico');
  shortcutsAddLink ('Presidentes de México', ':es:Presidentes de México');
  shortcutsAddLink ('Central American Presidents', 'Federal Republic of Central America#Presidents');
  shortcutsAddLink ('Peruvian Viceroys', 'List of Viceroys of Peru');
  shortcutsAddLink ('Virreyes de Perú', ':es:Virrey del Perú');
  shortcutsAddLink ('Cuban Governors', 'Colonial heads of Cuba');
  shortcutsAddLink ('Chilean Governors', 'Royal Governor of Chile');
  shortcutsAddLink ('Gobernadores de Chile', ':es:Gobernador de Chile');
  shortcutsAddLink ('New Granada Viceroys', 'List of Viceroys of New Granada');
  shortcutsAddLink ('Philippine Governors', 'Governor-General of the Philippines');
  shortcutsAddLink ('My Images', 'User:Rbraunwa/gallery10');
  shortcutsAddLink ('Editcount', 'http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js');
  
}