Skip to content

Instantly share code, notes, and snippets.

@MNBuyskih
Last active August 29, 2015 14:01
Show Gist options
  • Save MNBuyskih/eb2be76a3afbb0c81c66 to your computer and use it in GitHub Desktop.
Save MNBuyskih/eb2be76a3afbb0c81c66 to your computer and use it in GitHub Desktop.
4chan all image expansion bookmarklet
javascript:var links=document.getElementsByClassName('fileThumb');for(var i in links){if(links.hasOwnProperty(i)){var images=links[i].getElementsByTagName('img');console.log(images.length);ImageExpansion.toggle(images.length===1?images[0]:images[1]);}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment