Last active
November 7, 2018 11:28
-
-
Save hardiksondagar/c7aa1d270dee3030b8197252a76ff8da to your computer and use it in GitHub Desktop.
Bulk Accept LinkedIn group member requests
This file contains 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
/** | |
* | |
* Bulk-Accept LinkedIn group member requests ( For admin ) | |
* | |
* Tired of acceptig group's pending member request one by one. Follow steps to automate it. | |
* 1. Go to Pending tab of group i.e. https://www.linkedin.com/groups/YOUR_GROUP_ID/members/pending. | |
* 2. Open console ( press F12 in chrome ) and paste all the code below. | |
* 3. Wait while all the requests are accepted. | |
* | |
* @author : Hardik Sondagar <hardikmsondagar@gmail.com> | |
* | |
*/ | |
function accept(member_request) { | |
member_request.click(); | |
member_request.className = ''; | |
} | |
var follow_interval = setInterval( | |
function() { | |
var member_requests = document.getElementsByClassName('groups-manage-group-admin-actions__primary-action'); | |
if (member_requests.length) { | |
accept(member_requests[0]); | |
} | |
}, | |
1000 | |
); | |
var refresh_list_interval = setInterval( | |
function() { | |
window.scrollBy(0, -100); | |
window.scrollTo(0,document.body.scrollHeight); | |
}, | |
5000 | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment