This is a bookmarklet that adds a fully functional Fork button to your own Gist.
If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.
The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well).
A Closure Compiler optimized version provided below for convenient copy'n'paste.
You can get a little further by pasting the raw script of http://code.jquery.com/jquery-latest.min.js into the developer tools. This gets past the
$ is not defined
issue. That allows a second "Star" button to appear which is misnamed but when you click it, might attempt to do the right thing. It tries to post to./fork
with, as previously noted, a critical-lookingauthenticity_token
form field and gets back422 Unprocessable Entity
.