Hacker News new | ask | show | jobs
by some 6675 days 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";
1 comments

What can I say, I don't actually know JS. I just cargo-culted this from another similar script.