It is not possible to directly obtain the POST data of a web page; Imagine that this is possible. Then you can also read sensitive data sent through a POST request, which is clearly not necessary.
If you write a / usercript extension that has control over the generated HTML, you can add a query string to each form element using the = post method. This method is only reliable if POST requests are not scripted (AJAX) but initiated through a form.
Code example:
javascript:(function(){ var form = document.forms, i=form.length-1; for(; i>=0; i--) { if(/post/i.test(form[i].method)) form[i].action += "#method-post"; }
Location hashes are not sent to the server, but transmitted by the browser. This solution works great for extensions, but maybe inaccurate for bookmarklets, as the user should always activate it.
Rob w source share