Sunday 22 January 2012

Select all friends to add to a facebook page

I whipped this up this evening, it mostly works, may take a couple of goes.

javascript:var elms = document.getElementsByTagName('li'),i; for(i in elms){ try{ if(elms[i].className.substring(0,20) == 'multiColumnCheckable'){ var evObj = document.createEvent('MouseEvents'); evObj.initMouseEvent('click', true, true, window, 1, 12, 345, 7, 220, false, false, true, false, 0, null ); elms[i].dispatchEvent(evObj); } }catch(e){ } }
While viewing the "suggest page to friends" list, paste the above code into the URL, make sure "javascript:" is at the front and hit enter. Your friends should now all (or mostly) be selected.

No comments:

Post a Comment