User:Smith609/endnote.js

From OpenWetWare

Jump to: navigation, search

Note - After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

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]);
}
});
Personal tools