User:Manishearth/scriptlinks.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 41:
s = par[j].nextSibling;
var h= s.innerHTML + "";
var h2=h+"";
var q;
var quo;
Line 51 ⟶ 52:
quo="'"
}else continue;
var h2h3=hh2+"";
p = encodeURIComponent(h.replace(q, "$1").replace(/[_\s]+/g, "_")).replace(/%2F/g, "/");
s.innerHTML = quo + '<a href="' + wgArticlePath.replace("$1", p) + '">' + h2.replace(q, "$1") + '</a>' + quo;