[Easy Script] New script to grow your LinkedIn profile to 500+!

Naulex

Regular Member
Apr 17, 2017
284
261
I was using previously an awesome script created by @BrazenBull (you can see his script here: https://www.blackhatworld.com/seo/script-growing-your-linkedin-profile-easy-500-connections.914759/) but for some people (including me), it stopped working.

So I made my own fix to it (here is it), but I wanted to improve it and add more features meanwhile I keep it easy to use so here is my contribution to this awesome forum.

Oh, and first, thanks again to BrazenBull for his initial script!

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:

  1. Go to LinkedIn and log in.
  2. Go to the My Network tab (here is a direct link: https://www.linkedin.com/mynetwork/)
  3. Right-click on any point of the screen and select Inspect Element (or press Ctrl-Shift-I if you are on Windows)
  4. In the side panel, click on the Console tab
  5. 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
  6. 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);

And that's all! I have tried to explain everything with detail so everyone will be able to use and configure the script but if you have any question, just ask here!
 
Last edited by a moderator:
Great contribution! I have a question. I tried using this to no avail when I search for a nearby city, and try to connect with people. Why is that?

Try it yourself: Search for a nearby city, and try connecting with people using the script....
 
Great contribution! I have a question. I tried using this to no avail when I search for a nearby city, and try to connect with people. Why is that?

Try it yourself: Search for a nearby city, and try connecting with people using the script....

Try this code :

Code:
var currentSuccesfulConnections=0;
var totalConnections=0;
var totalInvitations=0;
var inviteText="";

function addConnection(connection){
    var btn_type=connection.text().trim().split(' ')[0].trim();
    if (btn_type!=inviteText) {
        connection.trigger('click');
        currentSuccesfulConnections+=1;
   }else{
        totalInvitations+=1;
   }
}

function createConnections(text_invite,max_succesful_connections){
    
  inviteText=text_invite;

  var connections=jQuery('.button-secondary-medium');
  totalConnections=connections.size();
 
  if(max_succesful_connections==0){
  max_succesful_connections=totalConnections;
  }
 
    connections.each(function(index, value) {
        if(currentSuccesfulConnections<max_succesful_connections){
        setTimeout(addConnection($(this)), index * 1000);
    }else{
      return false;
    }
    });
 
  console.log("Possible total connections: " + totalConnections);
  console.log("Succesful total connections: " + currentSuccesfulConnections);
  console.log("Total invitations avoided: " + totalInvitations);
}

// Don't touch anything above this line
// Change "Invite" to the word Invite in your language if you use LinkedIn in a different language (for example if you use LinkedIn in Spanish, you should change "Invite" with "Invitar")
// If you want to restrict the number of connections change the 0 with another number. 0 means unlimited connections, it will try to connect with everyone in your recommended connections. If you change it to another number, you will do the script connect with a maximum that number of users. Fo example, if I change 0 to 100, I will connect with just 100 persons (as much)

createConnections("Invite",0);
 
Lol, I hate linkedin and all my wannabe professional friends on it. I'm going to keep the console open for as long as it runs, and rake in those connects.
 
Great contribution! I have a question. I tried using this to no avail when I search for a nearby city, and try to connect with people. Why is that?

Try it yourself: Search for a nearby city, and try connecting with people using the script....

I am not really sure what are you saying :p can you explain it better?

Awesome method, but are the connections easily converted to traffic?

Well, I am not sure, I am testing it, we will see ;)

Lol, I hate linkedin and all my wannabe professional friends on it. I'm going to keep the console open for as long as it runs, and rake in those connects.

Hahahaha good idea!
 
Awesome job @Naulex! I noticed Linkedin Updated their "My Connections" page and didn't have the time to tweak the code. But still, it is good to see you guys making good use of good code.
 
Try this code :

Code:
var currentSuccesfulConnections=0;
var totalConnections=0;
var totalInvitations=0;
var inviteText="";

function addConnection(connection){
    var btn_type=connection.text().trim().split(' ')[0].trim();
    if (btn_type!=inviteText) {
        connection.trigger('click');
        currentSuccesfulConnections+=1;
   }else{
        totalInvitations+=1;
   }
}

function createConnections(text_invite,max_succesful_connections){
 
  inviteText=text_invite;

  var connections=jQuery('.button-secondary-medium');
  totalConnections=connections.size();
 
  if(max_succesful_connections==0){
  max_succesful_connections=totalConnections;
  }
 
    connections.each(function(index, value) {
        if(currentSuccesfulConnections<max_succesful_connections){
        setTimeout(addConnection($(this)), index * 1000);
    }else{
      return false;
    }
    });
 
  console.log("Possible total connections: " + totalConnections);
  console.log("Succesful total connections: " + currentSuccesfulConnections);
  console.log("Total invitations avoided: " + totalInvitations);
}

// Don't touch anything above this line
// Change "Invite" to the word Invite in your language if you use LinkedIn in a different language (for example if you use LinkedIn in Spanish, you should change "Invite" with "Invitar")
// If you want to restrict the number of connections change the 0 with another number. 0 means unlimited connections, it will try to connect with everyone in your recommended connections. If you change it to another number, you will do the script connect with a maximum that number of users. Fo example, if I change 0 to 100, I will connect with just 100 persons (as much)

createConnections("Invite",0);

That didn't work for some reason, instead I had a window pop up and ask me if I want to set an alert for that particular city.

I am not really sure what are you saying :p can you explain it better?

Go to search for a local city near you in the upper search bar on LinkedIn. Then look at only your 2nd connections. They only have 10 connections per page for a city search, and it's cumbersome to connect with them all one by one - and this script doesn't work for the "search results" only for "my network".

Any chance you can get your script to work on a city search?

http://imgur.com/L9QfFdd
 
Last edited:
This is a no-brainer but does not work anymore. Please update OP if possible.
 
No response to my question about local application?

Also had another question, is there any way you can add a delay between connecting, not sure if the speed is tripping things up because the rate of connections coming in since using this has slowed down and I am doing about 150 a day lately...
 
No response to my question about local application?

Also had another question, is there any way you can add a delay between connecting, not sure if the speed is tripping things up because the rate of connections coming in since using this has slowed down and I am doing about 150 a day lately...

About the local application, I will take a look, I think is possible. About changing the delay, I will create a new version that allows you that, just let me few days since I am doing this for free, just to contribute with BHW and I don't have always too much free time. Thanks for the interested in the script! :)
 
About the local application, I will take a look, I think is possible. About changing the delay, I will create a new version that allows you that, just let me few days since I am doing this for free, just to contribute with BHW and I don't have always too much free time. Thanks for the interested in the script! :)

You will be recommended for any new VIP sponsorships when I see them. We appreciate your work.
 
This code is awesome because it not only sends the connection request from that "my network" tab page, but also sends to those People You May Know after we add any industry-specific person with whom we actually want to connect!
upload_2017-6-17_12-30-42.png


So go ahead people, add all those profile-like people after adding 1 such industry-specific person. Great job @Naulex
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock