Last active
April 16, 2018 02:57
-
-
Save Whelton/746782068c2ff41aa8d7 to your computer and use it in GitHub Desktop.
LinkedIn Bulk Accept Invitations Magical Hacky Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* LinkedIn Bulk Accept Invitations Super Magical Hacky Script | |
* | |
* Just past this as a whole into the JavaScrip console on Chrome (or browser of choice) | |
* | |
*/ | |
// function simulating the clicks on checkbox and 'accept' button | |
var catsFromSpace = function(){ | |
console.log("Doing the bulk invite dance"); // Log it, log it real good | |
$('.bulk-chk').trigger("click"); // Click the checkbox | |
$(".bulkContainer-new > li:first > a").trigger("click") //Click the 'accept' button | |
} | |
catsFromSpace(); // Fire this to tick the checkbox and do the biz-i-ness | |
// Now listen for when the success alert box shows up | |
$("#global-error").bind("DOMSubtreeModified", function() { | |
// check if checkbox is unchecked (it unchecks after successful accepting invites ) | |
if (!$(".bulk-chk").is(':checked')) { | |
catsFromSpace(); // Rinse, repeat..... | |
} | |
}); |
minhajkk
commented
Jul 2, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment