Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cocoabox/f7be3455a9e652796a45 to your computer and use it in GitHub Desktop.
Save cocoabox/f7be3455a9e652796a45 to your computer and use it in GitHub Desktop.
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