Restore incorrectly removed code.
Was incorrectly removed during merge of master and this commit (Attempt directory download on newtab load if sponsored links are shown.)