User:Randall00/monobook.js

var wikEdMainCSS = []; wikEdMainCSS['.wikEdButton'] = background: yellow;';

// installation of the wikEd editing page extension

// install User:Cacycle/diff text diff code document.write(' ');

// install User:Pilaf/Live_Preview page preview tool document.write(' ');

// install RegExTypoFix common typo fixer document.write(' ');

// install User:Cacycle/wikEd international translation here

// install User:Cacycle/wikEd editing page extension document.write(' ');

function externISBN {

var magicURL = "http://catalogue.calgarypubliclibrary.com/ipac20/ipac.jsp?menu=search&index=ISBNEX&term=MAGICNUMBER";

if(mw.config.get('wgPageName') != Special:Booksources && mw.config.get('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); }   }  } }

$(externISBN);