User:Kschutt/common.js

$(document).ready(function{ if (document.getElementsByClassName("Z3988")) {    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 = "https://kammllc.com/tools/endnote.php?r=" + escape(refs[i].title);	link[i].setAttribute("target", "_blank");	refs[i].appendChild(space[i]);	refs[i].appendChild(link[i]);    }  } });