Remove useless link from popup window with a thread history