If you are having the Facebook's new Invites layout then the previous 'Select All' code will not function with this. Very very thanks to one of my French friend who got the code which will permit you to choose all your friends at one time and here you will not have to clean then one by one. All you have to do is, just open the Window for invitation and then remove the current URL bar from the top and then paste the below code in that and press enter.
Code:
javascript:elms=document.getElementsByName('checkableitems[]');dn=0;ds=0;ac=0;for(var fid in elms){if(typeof elms[fid] === 'object'){if (elms[fid].disabled == true){ds++;} else {if (elms[fid].checked == true){ac++;} else {elms[fid].click();dn++;}}}};
It might take some time to load but you should not worry about that. If you want then you can try the code below.
Code:
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};
Bookmarks