• How to Invite All Friends to a Facebook Event with Code Injection

    by  • May 30, 2012 • Info, Tutorial

    How to invite all your friends to your facebook party

    How to invite all your friends to your facebook party

    I was thinking about all you spammers out there today, and although I am fighting myself not to post this, I feel it is too hackery and wonderful not to post it on this blog. This is a way that you can inject code into the Facebook Event invite App and it will select all of your friends so that you don’t have to worry about all that needless clicking.

    Besides, this is going to be the BEST PARTY EVER!! Right?….

    Let me preface this by saying I did not write this tutorial, but found it interesting and thought it needed more exposure; it is by funklesseck on imgur.

    Also, your friends will hate you for this, I am quite certain.

    INSTRUCTIONS #1 and #2
    See image

    Instruction #3

    Instruction #3
    #3 Now go to the address bar at the top, it will read something like https://www.facebook.com/events/345342longrandomnumber349597894/ Delete this.

    Instruction #4

    Instruction #4
    #4 Paste in this code: (Before you do this, make sure you have scrolled down to the end of your friends list to select everyone) javascript:elms=document.getElementsByName(“checkableitems[]“);for (i=0;i<elms.length;i++){if (elms[i].type=”checkbox” )elms[i].click()}; NOTE: You’ll notice that in my example above, Google Chrome has deleted the “Javascript” part. You’ll need to check this and enter it yourself. If you’re nervous about the code, here’s what it does: javascript: [Do some Javascript] elms=document. [In the document, that is, the page you're looking at] getElementsByName(“checkableitems[]“); [get all the check boxes next to the people's names] for (i=0;i<elms.length;i++) [for all of those check boxes...] {if (elms[i].type=”checkbox” ) [if it is a checkbox....] elms[i].click()}; [...click on it so it has a tick next to it] Then it repeats until all the checkboxes are checked. This is because for i=0 [from the first check box] i<elms.length [for the length of the list of the check boxes] i++ [get the next check box]

    In case you need to add in the javascript: here’s what it looks like.

    In case you need to add in the javascript: here&#039;s what it looks like.
    This is me typing it in…

    Voila

    Voila
    Hit enter and this is what it’ll look like. So long as you’ve scrolled down to the end of your friends list, all your friends will be selected. Now just hit send and watch the declines roll in…

    About

    James is an active member of his local tech community in Memphis, TN. He is a student of Science at the local college and an Information Security hobbyist, as well as an outspoken Linux Advocate, and open source proponent. After a hard day at the console, James likes to enjoy a vintage 2012 Mountain Dew, with a robe and a pipe by the fire.