@The Curator ready!
New Script!
A lot of people were asking me for another script, one where you could go to LinkedIn, search for a company, place, whatever and connect with all the people, sending them a custom message.
Well, now it is done!
Note: If you just want to grow your connections, I recommend to check my first script, it is here.
How to use this script?
- Log in to the LinkedIn account
- Do a search (like New York or Google) and wait until the results page loads
- Right-click on the page and click on "Inspect" (or just press Ctrl + Shift + I)
- There, go to the "Console" tab
- Copy and paste the following code:
Code:
totalConnectionsDone=0;
canRun=1;
function connectWithMsg(message,connections){
$('.search-result__actions--primary').each(function(i, obj) {
if(totalConnectionsDone<connections || connections==0){
$(this).trigger('click');
$('#li-modal-container .send-invite .modal-wormhole-content section div .send-invite__actions .button-secondary-large').trigger('click');
_box=$('#li-modal-container .send-invite .modal-wormhole-content div section div');
_box.find('.ph4 label div textarea').val(message);
_box.find('.send-invite__actions .button-primary-large').trigger('click');
totalConnectionsDone++;
}
});
}
function executeScript(message,connections){
numberOfPage=0;
while(canRun==1){
if(numberOfPage==0){
connectWithMsg(message,connections);
}
if($(".next").length==1){
$(".next").trigger('click');
numberOfPage++;
}else{
canRun=0;
}
setTimeout(
function()
{
connectWithMsg(message,connections);
}, 5000);
}
console.log("Script finished!");
console.log("Messages sent: "+totalConnectionsDone);
}
// Do not edit anything above these lines!
// This script is "moreless" working, I have to improve it can run smoothly
// but it does its function.
// What is its function?
// Maybe you have seen my first script for LinkedIn, where you could people to grow your network.
// Now with this script, you can target your connections: you just need to do a search on LinkedIn
// And in that page execute this script and ready.
// Just add the message you want to send them and the number of connections you want to do as
// maximum (0 is equal to all the connections that are possible to do)
executeScript("Hi! I would like to connect with you!",0);
- Now just config it. You just need to go to the last line of that script and change Hi! I would like to connect with you! with your custom message. Also, I suggest changing 0 to a small number (like 100), since if you set 0, the script will connect (or at least try) with all the results (possibly more than 100000!). After that, just press enter and let the script does its work!
- When the script finishes, if everything goes fine, you will see two messages, one saying the script finished and other with the number of messages sent.
This is a complex script so maybe it has some bugs, I will try to fix them but I will need if you find some to tell me!
Hope this script will be useful for you, if you are looking for others, just tell me here!
Quick note: To avoid spam filters, after every page, the script will wait 5 seconds before start sending new messages, you can increase or decrease that time changing the 5000 number in the script to another number (5 seconds = 5000 milliseconds).