I want to change the content of what's being sent to post.php when I click on the publish/update button.
Specifically I want to append content using javascript.
So let's say I'm clicking on update, I can see that this sends a request to post.php with parameters (presumably including the content of the post).
How can I modify this before it gets to post.php?