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

By temporarily removing `target="_blank"` from links when
simulating clicks on them.
Merge pull request #384 from zhuochun/issue-348-link-target

Make `f` always open links in the same tab