diaspora/diaspora — pull request #2771 by Yajo (2012-01-29 12:44:22+00:00)
Title: New bookmarklet with more features. Normal and minified.

Solve partially issue #2741.

Add a file with the normal js bookmarklet, and replace the old minified one.

This new bookmarklet adds more features:

* Blockquoting the user's selected text
* Formatting it
* Includes selected images
* Displays links correctly

However, it will not work when selecting too much text due to server-side or protocol limitations described in the mentioned issue:

* GET requests have a character limit, so if the user selects too much text, it will break. However, current implementation does not accept POST in the bookmarklet, so this is what we have for now...
* When selecting double quotes `"` or newlines `\n`, the server does not escape them, so it makes the client's js crash.