Fix #348: Make f always open links in the same tab

By temporarily removing `target="_blank"` from links when
simulating clicks on them.