5 ms·
I would prefer the loop this way: for each(a in links) if (a.host && (a.host!=thisdomain || String(a).match(/item\?id=/))) a.target = "_blank";
by some 19y ago
I would prefer the loop this way:
for each(a in links)
if (a.host && (a.host!=thisdomain || String(a).match(/item\?id=/)))
a.target = "_blank";
- joshwa 19y agoWhat can I say, I don't actually know JS. I just cargo-culted this from another similar script.