Linkedin Console Automation Script

https://github.com/Gurukishore-G/Linkedin-Automation

Here is the url to the automation script that I use in browser console to automate the sending of connection requests in Linkedin. The script sends adds a note to each connection request. But the notes are very generic, and I want to personalize them by making sure, the script extracts the name of the person and adds it to the note.

Now:

Hi, there. I’m actively looking for potential career opportunities and would like to connect!”

What I want to achieve:

Hi {their name}, this is Gurukishore. I’d like to connect with you to explore career opportunities. Some briefing about my profile… Looking forward to getting in touch!

What modifications does the script need to make this possible, reading and extracting essential data.