Skip to content

Instantly share code, notes, and snippets.

@cocoabox
Created December 7, 2015 09:26
Show Gist options
  • Save cocoabox/cfc7553c6e29b9ff7c1f to your computer and use it in GitHub Desktop.
Save cocoabox/cfc7553c6e29b9ff7c1f to your computer and use it in GitHub Desktop.
twitter_img.txt
javascript:var s = document.getElementsByClassName("media-image")[0].src, v = function (p) { window.open(p.replace(/(:large$)/, ":orig")) };if (s) { v(s) } else { s =document.getElementsByClassName("media-img")[0].src; if (s) { v(s) } else { alert( "no image") }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment