Wikipedia:WikiProject User scripts/Scripts/Set Book Source
From Wikipedia, the free encyclopedia
This code will change ISBN links to point to the url of your choice, instead of Special:Book_sources.
You can change the destination url by simply modifying the quoted url that follows document.links[i].href=
Good luck, and if you have any questions, leave me a comment on User_talk:Lunchboxhero/monobook.js.
//
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; } } } addOnloadHook(externISBN);
//