User:Heavyphotons/monobook.js

// from http://en.wikipedia.org/wiki/User:Lunchboxhero/monobook.js function externISBN { for (var i = 0; i < document.links.length; i++) {   if (document.links[i].href.match(/isbn=(.*)/)) {     document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1; }   else if ( document.links[i].href.match(/^http:\/\/en\.wikipedia\.org\/wiki\/Special:Booksources\/(.*)/) ) {     document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1; } } } $(externISBN);