javascript:var input_checkbox = document.getElementById('pop_content').getElementsByTagName('input'); for (var i=0; i<input_checkbox.length-5; i++) {
input_checkbox[i].checked = true; if( input_checkbox[i].getAttribute('value') == 'Save and Close' ){input_checkbox[i].click()}; }
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
i tried making one but had no luck,
this was the closest i could get:
if you scroll to the bottom of your friends list when your about to invite everyone and paste this in chrome's url
Code:javascript:var input_checkbox = document.getElementById('pop_content').getElementsByTagName('input'); for (var i=0; i<input_checkbox.length-5; i++) { input_checkbox[i].checked = true; if( input_checkbox[i].getAttribute('value') == 'Save and Close' ){input_checkbox[i].click()}; }
but for some reason it doesn't send to everyone. maybe i'm missing something that someone could adjust?
javascript:var selectedids = ''; var input_checkbox = document.getElementById('pop_content').getElementsByTagName('input');var listitem = document.getElementById('pop_content').getElementsByTagName('li'); for (var li=0; li<listitem.length; li++) { listitem[li].setAttribute('class', 'multiColumnCheckable checkableListItem selectedCheckable ');};for (var cb=3; cb<input_checkbox.length-6; cb++) { input_checkbox[cb].setAttribute('checked', '1'); selectedids += input_checkbox[cb].getAttribute('value')+','; };var invites = document.getElementsByName('sgb_invitees'); invites[0].setAttribute('value', selectedids.substring(0,selectedids.length-1)); var submitevent = document.getElementsByName('save'); submitevent[0].click();
to claytonhuckle:
Just wanted to say thank you and everybody else for ur effort on this one, i hope u'll get it to work. Its seems like its selecting friends but not sending it for some reason, may be facebook came up with some protection or something.
I really could use that script right now =)
PS its actually selecting them and after few seconds page getting reloaded by itself and nothing happens.
PSS. Its working!!! but only if u can manage to push save and close fast enought before page gets reloaded =))
i'm getting closer, this one will highlight them but not too sure if they send out, some one wanna try messing around with this one to get it working?
Code:javascript:var selectedids = ''; var input_checkbox = document.getElementById('pop_content').getElementsByTagName('input');var listitem = document.getElementById('pop_content').getElementsByTagName('li'); for (var li=0; li<listitem.length; li++) { listitem[li].setAttribute('class', 'multiColumnCheckable checkableListItem selectedCheckable ');};for (var cb=3; cb<input_checkbox.length-6; cb++) { input_checkbox[cb].setAttribute('checked', '1'); selectedids += input_checkbox[cb].getAttribute('value')+','; };var invites = document.getElementsByName('sgb_invitees'); invites[0].setAttribute('value', selectedids.substring(0,selectedids.length-1)); var submitevent = document.getElementsByName('save'); submitevent[0].click();