Settings

Theme

Facebook wouldn't let me invite my friends... jQuery to the rescue!

frogo.tv

4 points by fotoflo 13 years ago · 6 comments

Reader

junto 13 years ago

A good example of why you should always fall back to validation on the server. Never trust the client.

broodsugar 13 years ago

Sneaky, and enormously helpful.

  • fotofloOP 13 years ago

    You can pretty much use this trick everywhere...

    • laxlaxy 13 years ago

      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.

      • fotofloOP 13 years ago

        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()

mattlovett 13 years ago

Good workaround!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection