Still a bit buggy, but works
Intended to be run in console (F12) of the search results page (SERP) you would like to add connections on.
Paste it in console (f12) on page https://www.linkedin.com/mynetwork/
Paste it in console (f12) on page https://www.linkedin.com/mynetwork/invitation-manager/sent/