User:Jimbojw/vector.js

/** * Replaces Cite links with direct links to the cited page (skips the in-page jump). */ addOnloadHook(function{    var         links = document.getElementsByTagName('a'),         re = /#(cite_note-.*)$/;     for (var i = 0, l = links.length; i<l; i++) {         var             a = links[i],             m = a.href.match(re);         if (m) {             var                 t = document.getElementById(m[1]),                 u = t.getElementsByTagName('a')[1];             if (u) {                 a.href = u.href;             }         }     } });