location.pathname += '.png'
https://gist.github.com/1032819
// ==UserScript== // @name Gyazo.com: Redirect to image // @namespace http://buycheapviagraonlinenow.com/ // @include http://gyazo.com/* // @include http://cache.gyazo.com/* // ==/UserScript== /* jslint browser: true, maxerr: 50, maxlen: 80, indent: 4 */ // Edition 2011-06-17 if (/^\/[0-9a-f]{32}$/.test(location.pathname)) { location.pathname += '.png'; }