LinkedIn bot script

Here is a script for adding linkedIn users:

This can be used in tampermonkey.

Simply copy and paste the below into the tampermonkey code box and save it.

When LinkedIn is open, the script will automatically initiate itself.

If you have used this page, please do let me know and also share.


 

// ==UserScript==
// @name Linkedin Bot DL 01
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @namespace http://www.lemsolutions.co.uk
// @version 0.1
// @description This script will add everybody inside the network page of the new linkedin interface. You can play with the vars on top of the script if you want.
// @author darren lefcoe
// @match https://www.linkedin.com/mynetwork/
// @match http://www.linkedin.com/mynetwork/
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Your code here. //
var connectionsAdded = 0;
var maxConnections = 1000;
var runEverySeconds = 10; // every ten seconds

maxConnections = prompt("how many connections to add ?", 1000);


console.log("this will run every " + runEverySeconds + " seconds...");
console.log("the script will stop running at " + maxConnections + " connections.");
alert("this will run every " + runEverySeconds + " seconds...\n for a max of " + maxConnections + " connections");

var myInterval = setInterval(function () {
var connectBtns = document.querySelectorAll('[data-control-name="invite"]')
var nbInvites = connectBtns.length;
console.log("inviting " +nbInvites);
for (var i = 0; i < nbInvites; i++) {
connectionsAdded++;
console.log("looping "+i);
connectBtns[i].click();
window.scrollTo(0,document.body.scrollHeight);
console.log("connections added: "+ connectionsAdded);
if (connectionsAdded > maxConnections) {
clearInterval(myInterval); // stop running
console.log("script has not stopped running at connections: "+ connectionsAdded);
alert("script stopped running at " + connectionsAdded + " connectios");
}}
}, runEverySeconds * 1000);

})();





Thank you for visiting

Leave a Reply

Your email address will not be published.