1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[WTH] Javascript Facebook needed to join all groups on a page

Discussion in 'Hire a Freelancer' started by Jared255, Oct 16, 2013.

  1. Jared255

    Jared255 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    1,909
    Likes Received:
    1,664
    Location:
    Boston, MA
    Sorry, line breaks not working for some reason. ------------------------------1) I navigate to a certain page such as https://www.facebook.com/search/more/?q=stuff&sid=0.34741379762999713 ------------------------------- 2) I scroll down until 5 or so pages of groups are showing. ------------------------------------------------------------- 3) I execute the Javascript you send me and it hits Join Group on all those groups. ------------------------------------------ 4) Not sure if this is even possible, if you can do it, PM me with price and turn around time. ----------------------------------------------------------------- Thanks, Jared​
     
    Last edited: Oct 16, 2013
  2. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,815
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
  3. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    Code:
    var groups=document.querySelectorAll('a[data-bt=\'{"ct":"join_group"}\']'); for(var i=0;i<groups.length;++i) groups[i].click();
    
    this tries to join all groups on the page
     
    • Thanks Thanks x 2
  4. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,815
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
    That's a very old code, does work anymore.
     
  5. YouTubez

    YouTubez Regular Member

    Joined:
    Feb 3, 2013
    Messages:
    327
    Likes Received:
    140
    Occupation:
    YouTube Marketing
    Worked perfectly for me :)
     
  6. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,815
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
    Read the requirements of the OP and make sure you did the same USE CASE.

    This code wont scroll down to 5 or more or anywhere after first page, if at all it works, it will join the groups on 1 page only. Atleast that I can say just by seeing the code.
     
  7. xxMP3xx

    xxMP3xx Regular Member

    Joined:
    May 19, 2009
    Messages:
    368
    Likes Received:
    46
    Location:
    <?php return 'CPU'; ?>
    Nowhere OP said that the script should navigate to bottom pages.
     
  8. indianbill007

    indianbill007 Jr. VIP Jr. VIP

    Joined:
    Jan 8, 2010
    Messages:
    4,815
    Likes Received:
    4,051
    Occupation:
    Making Money when the world is sleeping
    Location:
    Menlo Park - Next to Zuck
    2) I scroll down until 5 or so pages of groups are showing.

    Here you go..
     
  9. mackay22

    mackay22 Regular Member

    Joined:
    Jul 22, 2009
    Messages:
    244
    Likes Received:
    93
    Id actually interpret that as OP would scroll down, and then the script would join ??

    Anyway I cant get this script to work, when I put it in browser and hit go it just moves to google search. THe "confirm all friends" javascript works fine though.

    Any ideas what I'm doing wrong?

    Thanks
     
  10. mackay22

    mackay22 Regular Member

    Joined:
    Jul 22, 2009
    Messages:
    244
    Likes Received:
    93
    Adjusted the above code ever so slightly, this is what works fine for me, if you scroll down the page to load more groups manually, this will join all the groups :)

    Code:
    javascript:%20var%20groups=document.querySelectorAll('a[data-bt=\'{"ct":"join_group"}\']');%20for(var%20i=0;i<groups.length;++i)%20groups[i].click();
     
  11. xxMP3xx

    xxMP3xx Regular Member

    Joined:
    May 19, 2009
    Messages:
    368
    Likes Received:
    46
    Location:
    <?php return 'CPU'; ?>
    Please read again. Nowhere OP said that the script should navigate to bottom pages.
     
  12. Yrden

    Yrden Registered Member

    Joined:
    Mar 21, 2014
    Messages:
    54
    Likes Received:
    0
    Does it work for chrome?

    I retyped javascript: but it didnt work :/