If you own a page on fb or you are trying to invite your friends to an event on facebook, its pain to keep clicking all the checkboxes / friends to invite multiple friends. Its easy to use code.

1. Open the dialogue where all your friends are listed with checkboxes.

2. Copy paste the following code to your addressbar: 


for (i=0;i < elms.length;i++)
if (elms[i].type="checkbox" )

3. Press Enter

—– OR if you need it often —-

You can drag and drop the following link to your Bookmarkbar and click whenever you are on invite dialogue box.


Day saved Cheers!