How to select all friends in facebook page

Now i have a new tweak to select many friends on facebook page, event or suggest friends in a single click.
As we all have many friends in our accounts and it takes too much time to select them all one by one, just a wastage of time.

Follow :-

1. Login to your facebook account.
2. Navigate to the page or event where to select your all friends.
3. Click on Invite friends.
4. New box will appear, scroll down the list until your all friends name is loaded.
5. It will look like,


6. Now put this script in the address bar, and press Enter.

javascript:var x=document.getElementsByTagName(“input”);for(var i=0;i<x.length;i++) ‘checkbox’)=”” (x[i].type=”=” alert(‘done,=”” all=”” been=”” friends=”” have=”” selected’);<span=”” style=”color: black;” your=”” {if=”” {x[i].click();}};=””>”</x.length;i++)>
Wait for few seconds.Then see the magic.