Created
March 11, 2014 16:22
-
-
Save eidantoei/9489263 to your computer and use it in GitHub Desktop.
Instagram: replace photo to img tag
This file contains hidden or 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 imgElm=document.createElement('img');imgElm.style.width='100%';imgElm.src=document.getElementsByClassName('Image')[0].style.backgroundImage.replace(/url\((.*)\)/,"$1");document.querySelectorAll('.iMedia')[0].insertBefore(imgElm);var gomiElm = document.querySelectorAll('.iWithTransition')[0];gomiElm.parentNode.removeChild(gomiElm); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment