I just did a quick rewrite of the "select all" code. This version will select 49 random friends. You can change the number by changing the 49 with any other number of your choice (but no bigger than the amount of your friends). I think this would be better for testing, because FB can easily create some filters that would discard "seemingly machine-selected" invitations. However, if you select RANDOM friends everytime, there's no way to know if they were selected automatically.
Here's a beautified version if anyone's interested:Code:javascript:s=49;e=document.getElementById('friends').getElementsByTagName('li');l=e.length;function a(h,t){a=new Array();for(var i=0;i<t;i++)a[i]=i+1;function o(){return(Math.round(Math.random())-0.5)}a.sort(o);return a.slice(0,h)}a=a(s,l);for(var z=0;z<s;z++)if(typeof e[a[z]]==='object'){fs.click(e[a[z]])}
I know that's probably not the best way to do it, but it works, so who cares.Code:s = 49; e = document.getElementById('friends').getElementsByTagName('li'); l = e.length; function a(h, t) { a = new Array(); for (var i = 0; i < t; i++) a[i] = i + 1; function o() { return (Math.round(Math.random()) - 0.5); } a.sort(o); return a.slice(0, h); } a = a(s, l); for (var z = 0; z < s; z++) if (typeof e[a[z]] === 'object') { fs.click(e[a[z]]); }
Not working now .. can you plzz check wats wrong
thanks