User:Fbusy/monobook.js

//ISBN leads directly to BANQ function externISBN { var magicURL = "http://catalogue.banq.qc.ca/cgi-bin/bestn?id=%255FZjow%252F%25E2%257Dt%252DJQNFwwdX&act=8&auto=0&nli=3&v0=0&npro=3&fpro=10&x=10&y=17&t0=MAGICNUMBER&i0=10&s0=5&l0=0&t1=&i1=1&s1=5&l1=0&t2=&i2=2&s2=5&v1=0&v2=0&v3=0&v4=0&sy=&ey=&scr=1"; var magicRegex = /MAGICNUMBER/ig; 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(magicRegex, RegExp.$1); }   }  } } $(externISBN);