Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taizooo/1818079 to your computer and use it in GitHub Desktop.
Save taizooo/1818079 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Gyazo.com: Redirect to image
// @namespace http://buycheapviagraonlinenow.com/
// @include http://gyazo.com/*
// @include http://cache.gyazo.com/*
// ==/UserScript==
if (/^\/[0-9a-f]{32}$/.test(location.pathname)) {
var u = 'http://'
if (/^g/.test(location.hostname)) {
u += 'cache.'
}
u +=location.hostname + location.pathname;
u += '.png';
location.href = u;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment