Naulex
Regular Member
- Apr 17, 2017
- 283
- 261
Update
First of all, sorry for double posting, but I can't edit the previous post. I am working on a new version where you have many more options (some filters and sending custom messages for connections), but in the meanwhile, I have made an updated version of the first script I did.
Changelog:
How to use:
Script:
First of all, sorry for double posting, but I can't edit the previous post. I am working on a new version where you have many more options (some filters and sending custom messages for connections), but in the meanwhile, I have made an updated version of the first script I did.
Changelog:
- It works on the latest LinkedIn update
- Now you don't need to edit the script depending on your UI's language, it now works on every LinkedIn account out of the box!
- It is really fast!!! (Previously when you wanted to do just 10 connections you have to wait almost the same as if you wanted to do 2000, now you don't have to wait so it will be really fast if you want to do just a few connections)
- Fixed several bugs about optimization and one that made the script connects with a few less or a few more users than you wanted, now it connects exactly with the number of users you want (if they are available, don't ask to connect with 10 billion, you know, there are not enough people on this planet)
How to use:
- Go to LinkedIn and log in.
- Go to the My Network tab (here is a direct link: https://www.linkedin.com/mynetwork/)
- Right-click on any point of the screen and select Inspect Element (or press Ctrl-Shift-I if you are on Windows)
- In the side panel, click on the Console tab
- Paste the following code, scroll down and in the last line, where you will find a 10, change it with the number of connections you want to do
- Press enter and wait, done!!
Script:
HTML:
// Script developed by @Naulex
// Check my thread on BlackHatForum for more info
// https://www.blackhatworld.com/seo/easy-script-new-script-to-grow-your-linkedin-profile-to-500.944911/page-7#post-11606394
// Do not sell this script, it has been developed to be shared for free
// If you share it on other places, please link to the original BlackHatForum thread
// Do not edit any code, just scroll to the bottom
let arrUsers = [];
var numberOfUsers = 0;
var intervalUsers;
var lastWindowHeight = -1;
function startScript(numberOfCon){
numberOfUsers = numberOfCon;
connectWith();
}
function connectWith(){
runInterval().then(value => sendConnections());
}
function runInterval() {
return new Promise((resolve, reject) => {
intervalUsers = setInterval(function(){
window.scrollTo(0, document.body.scrollHeight);
if(numberOfUsers<=arrUsers.length || document.body.scrollHeight == lastWindowHeight){
console.log("Finishing interval, we already got enough users or we can not find anymore...");
clearInterval(intervalUsers);
resolve(1);
}
arrUsers = document.querySelectorAll('button[data-control-name="invite"]');
console.log("We got " + arrUsers.length + " users (for now)...");
lastWindowsHeight = document.body.scrollHeight;
}, 2000);
})
}
function sendConnections(){
var totalConnectionsSent = 0;
for (let usr of arrUsers) {
if (totalConnectionsSent >= numberOfUsers) {
break;
}
usr.click();
totalConnectionsSent += 1;
}
console.log("FINISHED!");
console.log("Sent " + totalConnectionsSent + " connections.");
console.log("Developed by @Naulex (see me on BlackHatWorld forum)");
alert("FINISHED!\n\nSent " + totalConnectionsSent + " connections.\nDeveloped by @Naulex (see me on BlackHatWorld forum)");
}
//
// Here is the only change you have to do: Change the number 10 with the number of connections you want to do: 1, 10, 37, 2184... and press enter.
startScript(10);