User:Smith609/endnote.js

From OpenWetWare
Jump to: navigation, search
addOnloadHook( function() {
refs = document.getElementsByClassName("Z3988");
link = new Array();
space = new Array();
for (var i=0; i<refs.length; i++){
        space[i] = document.createTextNode(" ");
	link[i] = document.createElement("a");
	link[i].innerHTML = "Endnote";
	link[i].href = "http://toolserver.org/~verisimilus/Scholar/coins.php?r=" + escape(refs[i].title);
	refs[i].appendChild(space[i]);
	refs[i].appendChild(link[i]);
}
});