User:Andypierce57/monobook.js

function externISBN { var magicURL = "http://www.amazon.com/gp/search/ref=sr_adv_b/?search-alias=stripbooks&field-isbn=MAGICNUMBER"; 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(/MAGICNUMBER/ig, RegExp.$1); }   }  } }