Created
April 18, 2012 13:37
-
-
Save philipsharp/2413604 to your computer and use it in GitHub Desktop.
Bookmarklet to re-assemble POST data from RequestBin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var rid=prompt('Request ID:');if(rid.slice(0,1)!='#')rid='#'+rid;prompt('POST data:',$.makeArray($(rid+' .content-view li').map(function(){var n=$(this).clone();return $('div',n).detach().text() +'='+ encodeURIComponent(n.text())})).join('&'));})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment