📜 ⬆️ ⬇️

Quick invite friends to Facebook-a group

This post was posted on Facebook Api because the Facebook hub is not available. For which I apologize!
Recently there was a question about inviting friends to facebook-a group. It would seem nothing complicated, but not when more than 1,000 friends. Since I do not particularly sit in the FB and VK, I certainly do not know how to immediately mark everyone in the list. To mark manually is certainly not an option, because the time, effort and nerves are not worth the result. It was here that the idea was born to do this with the help of a small script. This script automatically marks all friends in the list and sends invites, with a minimum of actions on our part.
Who faced such need, welcome under kat.

How it works:
1. go to the desired FB group
2. in the section “Invite friends” click “View all”
3. open the browser console: Chrome and Mozila (Ctrl + Shift + j)
4. paste this code:
f=document.forms; if(f) for(i=0;i<f.length;i++){ if(f[i].className=='_s'){ a=document.getElementById(f[i].id); if(a){ var _prof = ''; for(i=0;i<a.elements.length;i++){ e=a.elements[i]; if(e.type=='checkbox' && !e.disabled){ e.checked='checked'; e.parentElement.className +=' selectedCheckable'; if(_prof!=''){ _prof +=','; } _prof += '"'+e.value+'":1'; }; } _prof = '{'+_prof+'}'; a['profileChooserItems'].value=_prof; a.getElementsByTagName('button')[2].click(); } break; } } 

5. Press Enter
That's all, invites sent out, we are satisfied and we have a lot of free time!

')

Source: https://habr.com/ru/post/194990/


All Articles