1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Modify the FB select all code?

Discussion in 'General Programming Chat' started by wehttam, Apr 11, 2010.

  1. wehttam

    wehttam Newbie

    Oct 15, 2008
    Likes Received:
    I was wondering if there's anyway to modify the Select All javascript code for facebook (to invite friends to pages/groups) so that it selects 48 friends only (since facebook implemented the 48 max invite at a time limit). I'm a noob to programming so this question may probably sound absurd, if so , sorry.

    javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}