Console code to select all contacts to invite to a page.
Copy and paste this into the console in Inspect Element on the LinkedIn invite connections modal
Code taken from and slightly modified from: https://www.javascripttutorial.net/javascript-dom/javascript-checkbox/