Aaron Parecki: @BarnabyWalters Nice! Here's the version I use, encoding the URL is important. https://gist.github.com/aaronpk/7205147

.@aaronparecki noted, updated mine to include URI component encoding, also added ability to toggle between results and original page.