Forked from youpy/gyazocom_redirect_to_ima.user.js
Created
February 13, 2012 16:43
-
-
Save taizooo/1818079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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