The Curator
Elite Member
- Dec 27, 2013
- 1,512
- 761
@The Curator yes! Just replace in the script the "button-secondary-large" with "button-primary-large"
Edit: Here I left a improved script to connect without sending messages:
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-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("",0);
Too awesome guy!