Modify the FB select all code?

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

  1. wehttam

    wehttam Newbie

    Joined:
    Oct 15, 2008
    Messages:
    29
    Likes Received:
    0
    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.

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