When doing general testing and updates to a Shopify site you invariably come across something that needs to be edited. Rather than loading up the admin, heading to the right section, and then editing the object it's far easier to just click an edit button on the page itself.
[update] The code shown here has been moved into a proper github repo. Jump to the create 'view in Admin' button for current view repo.
This is what this code does. This is simply a fork of some code by Carolne Schnapp - just modded for my own tastes and needs.