Created
July 10, 2014 13:50
-
-
Save twinkfrag/3bec3bc1d42f75b177cb to your computer and use it in GitHub Desktop.
bookmarklet of twitter original image
This file contains 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
var host = "pbs.twimg.com"; | |
if($()){ | |
var path = $("a.media-thumbnail").attr("data-url").replace("https://pbs.twimg.com",""); | |
} | |
if(location.host.match(host)){ | |
var path = location.pathname; | |
} | |
location.href = "//" + host + path.match('[^:]+') + ":orig"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment