Doesn't actually work as a userscript, paste into console.
As it says in the script description, paste into console.
Usage:
Functions:
connext() - connect once, or repeating (depending on below vars)
Vars:
REPEAT - boolean for if it should repeat
DELAY - delay in milliseconds if it repeats