Facebook wouldn't let me invite my friends... jQuery to the rescue!frogo.tv 4 pointsfotoflo13 years ago6 commentsSaveHideCopy link On HNComments−junto13yA good example of why you should always fall back to validation on the server. Never trust the client.−broodsugar13ySneaky, and enormously helpful.−fotofloOP13yYou can pretty much use this trick everywhere...−laxlaxy13yI doubt this works. All it does is change the client side DOM. When the form gets sent to the server they can still ignore those friends.−fotofloOP13yThank you. I went back and looked, and you're right, it seems that it didnt submit ALL friend requests, only about a hundrad apperently.You can use this jQuery to click all friends who are clickable:1) jQuery(".fbProfileBrowser .fcb.fwb.text").click()−mattlovett13yGood workaround!
Comments
A good example of why you should always fall back to validation on the server. Never trust the client.
Sneaky, and enormously helpful.
You can pretty much use this trick everywhere...
I doubt this works. All it does is change the client side DOM. When the form gets sent to the server they can still ignore those friends.
Thank you. I went back and looked, and you're right, it seems that it didnt submit ALL friend requests, only about a hundrad apperently.
You can use this jQuery to click all friends who are clickable:
1) jQuery(".fbProfileBrowser .fcb.fwb.text").click()
Good workaround!