I played around with this eight years ago ( http://www.conman.org/people/spc/writings/hypertext/fragment... ) and it wasn't hard then (no Javascript either). In fact, I used four different options of displaying links. No guarantees on the external links working any more though ...
A simple button next to each post and you could choose depending on your wants.
(Note: I am not a 1337 haX0r, so I could also be very dumb.)