Close
http://pastebin.com/f1f6b1996

Here's an updated script. It uses the built-in search renderer, and has a few other tricks:

Select an image on a danbooru (thumbnail or the actual image); it'll pick up the tags, rating and actual URL and pass them through the image search. From there, select "upload this image" on the left and you'll get the upload form with those things filled out already. (It's smart enough to send the thumbnail for the image search but to give the real URL for the upload form.)

Of course, you'll need to edit the tags appropriately; I'm assuming anyone serious enough about uploading here to even find this (much less use it) will know enough to do that.

It can be made to do this for any site that can have some or all of this information parsed out in some way. I implemented it for e-shuushuu.net, too. That's not all that useful (not much there that isn't here already), but it shows how to do it.

It also has the image-centering and fixed-tag-link bits from the previous script. Just edit those out if you don't want them.