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

I got this message: "
Uncaught SyntaxError: Identifier 'arrUsers' has already been declared
at <anonymous>:1:1
(anonymous) @ VM505:1"
when try script from @Naulex
How i can fix it?

Updated: After i tried refresh site, it work well. Thanks @Naulex
 
Last edited:
I got this message: "
Uncaught SyntaxError: Identifier 'arrUsers' has already been declared
at <anonymous>:1:1
(anonymous) @ VM505:1"
when try script from @Naulex
How i can fix it?

Updated: After i tried refresh site, it work well. Thanks @Naulex

I get the same error too, first i got undefined output, and next the arrUsers has already been declared,
How do i fix this?

EDIT: Works FIne.
 
Last edited:
@Naulex It doesn't work anymore, the script makes the page just keep scrolling down but doesn't click the connect button.

It was working fine about until 2 weeks ago
 
Update

So, long time ago I did this script and honestly, I haven't checked it for a while but since I had to use it today and LinkedIn did some changes, I have thought about posting here an updated version.

Changelog:
  • It works on the latest LinkedIn update
  • Fixed some bugs it had
  • Tested on the latest Google Chrome version

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!
Keep in mind LinkedIn is now more strict and if you have a fresh account with no phone verification (and even with phone verification) you should start slow, don't send thousands of invitations, start with 50 or so every few hours!

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-8#post-12863703
// 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
var arrUsers = [];
var numberOfUsers = 0;
var intervalUsers;
var lastWindowHeight = -1;
var totalConnectionsSent = 0;

function startScript(numberOfCon){
    numberOfUsers = numberOfCon;
    arrUsers = [];
    lastWindowHeight=-1;
    totalConnectionsSent = 0;
  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(){
 
  for (let usr of arrUsers) {
      if (numberOfUsers>0 && totalConnectionsSent!==0 && totalConnectionsSent+1 > 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);
 
Last edited:
Update

So, long time ago I did this script and honestly, I haven't checked it for a while but since I had to use it today and LinkedIn did some changes, I have thought about posting here an updated version.

Changelog:
  • It works on the latest LinkedIn update
  • Fixed some bugs it had
  • Tested on the latest Google Chrome version

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!
Keep in mind LinkedIn is now more strict and if you have a fresh account with no phone verification (and even with phone verification) you should start slow, don't send thousands of invitations, start with 50 or so every few hours!

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-8#post-12863703
// 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
var arrUsers = [];
var numberOfUsers = 0;
var intervalUsers;
var lastWindowHeight = -1;
var totalConnectionsSent = 0;

function startScript(numberOfCon){
    numberOfUsers = numberOfCon;
    arrUsers = [];
    lastWindowHeight=-1;
    totalConnectionsSent = 0;
  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(){
 
  for (let usr of arrUsers) {
      if (numberOfUsers>0 && totalConnectionsSent!==0 && totalConnectionsSent+1 > 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);
keep them coming :)
 
Quick Update

Yesterday I posted an update but it has a minor bug. It was nothing important, just it was always following one user less than what you specify; but since I don't like to publish things that are not working perfectly, I have thought about doing a quick update with the fix.

Also, I was testing the script and meanwhile I was hit by a limitation to send invites a few times and also I have to work so I wasn't able to be running the script all day I didn't follow a lot of people, the account I did yesterday for testing with 0 connections has now 263 connections (and growing every minute, since other people are accepting the requests).

So, what is the updated code? Here it is:
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
var arrUsers = [];
var numberOfUsers = 0;
var intervalUsers;
var lastWindowHeight = -1;
var totalConnectionsSent = 0;

function startScript(numberOfCon){
    numberOfUsers = numberOfCon;
    arrUsers = [];
    lastWindowHeight=-1;
    totalConnectionsSent = 0;
  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(){
 
  for (let usr of arrUsers) {
      if (numberOfUsers>0 && totalConnectionsSent!==0 && totalConnectionsSent+1 >= 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);
 
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 (https://www.blackhatworld.com/seo/script-growing-your-linkedin-profile-easy-500-connections.914759/page-3#post-10102424), 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!

lol but if you refresh a page it will return back..
 
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!
View attachment 91974

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

does it really work??
 
Thanks for sharing this script.
Adding a 1000 connections only took ~6minutes with this script.

I've tested it out the first time for 100 connections, it said sent 99 connections. Tried a second time for 1000 connections and again said finished, sent 999 connections.
So it's still doing 1 less than what you specify.

Besides this one small detail, the whole script is perfect. It works like it's supposed to.
 
Quick Update

Yesterday I posted an update but it has a minor bug. It was nothing important, just it was always following one user less than what you specify; but since I don't like to publish things that are not working perfectly, I have thought about doing a quick update with the fix.

Also, I was testing the script and meanwhile I was hit by a limitation to send invites a few times and also I have to work so I wasn't able to be running the script all day I didn't follow a lot of people, the account I did yesterday for testing with 0 connections has now 263 connections (and growing every minute, since other people are accepting the requests).

So, what is the updated code? Here it is:
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
var arrUsers = [];
var numberOfUsers = 0;
var intervalUsers;
var lastWindowHeight = -1;
var totalConnectionsSent = 0;

function startScript(numberOfCon){
    numberOfUsers = numberOfCon;
    arrUsers = [];
    lastWindowHeight=-1;
    totalConnectionsSent = 0;
  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(){
 
  for (let usr of arrUsers) {
      if (numberOfUsers>0 && totalConnectionsSent!==0 && totalConnectionsSent+1 >= 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);
I try your code but i alway get "net::ERR_BLOCKED_BY_CLIENT" and "This error does not have an error message [{"status":500}]"
Check my attach file for more information
 

Attachments

  • Screen Shot 2020-03-19 at 00.24.15.png
    Screen Shot 2020-03-19 at 00.24.15.png
    445.5 KB · Views: 81
I try your code but i alway get "net::ERR_BLOCKED_BY_CLIENT" and "This error does not have an error message [{"status":500}]"
Check my attach file for more information

The error messages you are seeing are not related to the script but Adblock (or a similar extension) blocking LinkedIn ads. As you can see in the log, the users are found and invitations sent!
 
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