Skip to content

Instantly share code, notes, and snippets.

@hogashi
Created December 29, 2015 06:51
Show Gist options
  • Select an option

  • Save hogashi/75d5fc614f964e61deee to your computer and use it in GitHub Desktop.

Select an option

Save hogashi/75d5fc614f964e61deee to your computer and use it in GitHub Desktop.
The bookmarklet of TwitterOpenOriginalImage
javascript:(function(){if(m=document.querySelector('.permalink-tweet-container'))for(i=((m=m.getElementsByClassName('AdaptiveMedia-photoContainer')).length-1);i>=0;i--)if(u=m[i].getElementsByTagName('img')[0].src)window.open(u+':orig')})();
/*
javascript:(
function() {
if(m = document.querySelector('.permalink-tweet-container'))
for(i = ((m = m.getElementsByClassName('AdaptiveMedia-photoContainer')).length - 1); i>=0; i--)
if(u = m[i].getElementsByTagName('img')[0].src)
window.open(u + ':orig')
}
)();
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment