Shined up real nice.
It looks like you're new here. If you want to get involved, click one of these buttons!
User scripts (all of them) are run only after a page is fully loaded. You cannot get a redirect sooner than that, unfortunately.
Regarding search, Pinterest decided to completely remove it for non logged users. Before, it was just hidden (and the script would uncover it). You can still use this URL template:
Or use the customary !pinterest bang-syntax on DuckDuckGo.