Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
/* moved to [[user:I18n/common.js]] *//* test */functionlinkingviaVIAF(){/* goal / future var targetURL = "http://librarything.com/author/viaf/viaf.org"; *//* today */vartargetURL="http://yi.librarything.com/commonknowledge/search.php?f=13&exact=1&q=VIAF%3Aviaf.org";varmagicRegex=/viaf.org/ig;for(vari=0;i<document.links.length;i++){if(document.links[i].href.match(/viaf.org\/(.*)/)){/* document.links[i].href=targetURL.replace(magicRegex, RegExp.$1); */document.links[i].href=targetURL.replace(magicRegex,RegExp.$1.replace(/[\D]*/g,''))}}}$(linkingviaVIAF);