javascript:(function()%7B%3B"use strict"%3Bfunction outdated(e)%7Bconsole.warn("%5Binstantgram%5D is outdated. Please go to http://theus.github.io/instantgram to update"),console.warn("%5Binstantgram%5D local version: "%2Be.version%2B" %7C new update: "%2Be.gitVersion)%7Dfunction determineIfGetUpdateIsNecessary()%7Bvar e%3DlocalStorage.getItem("instantgram")%3Breturn!e%7C%7C(e%3DJSON.parse(e),e.version!%3D%3De.gitVersion%26%26outdated(e),Date.now()>e.dateExpiration)%7Dfunction update(e)%7Bvar t%3De.replace(/%5C./g,"")%3Bif(t%3DparseInt(t),determineIfGetUpdateIsNecessary())%7Bvar a%3Dnew XMLHttpRequest%3Ba.addEventListener("readystatechange",function()%7Bif(console.info("%5Binstantgram%5D is contacting server looking for updates..."),4%3D%3D%3Dthis.readyState)%7Bvar a%3Dnew Date%3Ba.setDate(a.getDate()%2B2),localStorage.setItem("instantgram",JSON.stringify(%7Bversion:e,gitVersion:JSON.parse(this.responseText).version,lastVerification:Date.now(),dateExpiration:a.valueOf()%7D))%3Bvar r%3DJSON.parse(this.responseText).version%3Bif(r%3Dr.replace(/%5C./g,""),r%3DparseInt(r),console.info("%5Binstantgram%5D updated local data"),t<r)%7Bvar i%3DJSON.parse(localStorage.getItem("instantgram"))%3Balert("%5Binstantgram%5D found a update.%5Cn please go to theus.github.io/instantgram for update"),outdated(i)%7Delse console.info(localStorage.getItem("instantgram"))%7D%7D),a.open("GET","https://theus.github.io/instantgram/package.json"),a.send()%7D%7Dfunction isElementInViewport(e)%7Bvar t%3De.getBoundingClientRect()%3Breturn t.bottom>0%26%26t.right>0%26%26t.left<(window.innerWidth%7C%7Cdocument.documentElement.clientWidth)%26%26t.top<(window.innerHeight%7C%7Cdocument.documentElement.clientHeight)%7Dvar VERSION%3D"2.1.0",hostname%3Dlocation.hostname,path%3Dlocation.pathname,regex_original_image%3D/%5C/%5Ba-z%5D%2B%5Cd%2B%5Ba-z%5D%3Fx%5Cd%2B%5Ba-z%5D%3F/,regex_path%3D/%5E%5C/p%5C//,regex_image_id%3D/pImage_%5Cd%2B/,regex_hostname%3D/instagram%5C.com/%3Bif(regex_hostname.test(hostname)%7C%7Calert("%5Binstantgram%5D only works in instagram.com"),regex_hostname.test(hostname))%7Bif(regex_path.test(path))%7Btry%7Bif(2%3D%3D%3Ddocument.getElementsByTagName("article").length)%7Bvar modal%3Ddocument.getElementsByTagName("article")%5B1%5D,modal_image%3Dmodal.querySelector("header %2B div img").src%3Bif(modal_image)%7Bvar image_link%3Dregex_original_image.test(modal_image)%3Fmodal_image.replace(regex_original_image,""):modal_image%3Bwindow.open(image_link)%7Delse alert("%5Binstantgram%5D don%27t found a image in instagram post. Try open the link in new tab.")%7D%7Dcatch(e)%7Bconsole.error("%5Binstantgram%5D "%2BVERSION,e)%7Dtry%7Bif(1%3D%3D%3Ddocument.getElementsByTagName("article").length)%7Bvar post%3Ddocument.getElementsByTagName("article")%5B0%5D,post_image%3Ddocument.querySelector("article > div img").src,image_link%3Dregex_original_image.test(post_image)%3Fpost_image.replace(regex_original_image,""):post_image%3Bimage_link%3Fwindow.open(image_link):alert("ops, %5Binstantgram%5D don%27t found the image :(")%7D%7Dcatch(e)%7Bconsole.error("%5Binstantgram%5D "%2BVERSION,e)%7D%7Delse var alertNotInInstagramPost%3D!0%3Btry%7Bif(!image_link)e:%7Bvar _iteratorNormalCompletion%3D!0,_didIteratorError%3D!1,_iteratorError%3Dvoid 0%3Btry%7Bfor(var _iterator%3Ddocument.images%5BSymbol.iterator%5D(),_step%3B!(_iteratorNormalCompletion%3D(_step%3D_iterator.next()).done)%3B_iteratorNormalCompletion%3D!0)%7Bvar image%3D_step.value%3Bif(regex_image_id.test(image.id)%26%26isElementInViewport(image))%7Bvar image_link%3Dregex_original_image.test(image.src)%3Fimage.src.replace(regex_original_image,""):image.src%3Bimage_link%3Fwindow.open(image_link):alert("%5Binstantgram%5D the search in screen found more than 1 image. Are you in a profile%3F If yes, open a photo before run %5Binstantgram%5D"),alertNotInInstagramPost%3D!1%3Bbreak e%7D%7D%7Dcatch(err)%7B_didIteratorError%3D!0,_iteratorError%3Derr%7Dfinally%7Btry%7B!_iteratorNormalCompletion%26%26_iterator%5B"return"%5D%26%26_iterator%5B"return"%5D()%7Dfinally%7Bif(_didIteratorError)throw _iteratorError%7D%7D%7D%7Dcatch(e)%7Bconsole.error("%5Binstantgram%5D "%2BVERSION,e)%7DalertNotInInstagramPost%26%26alert("ops, are you in a instagram post%3F ex: instagram.com/p/82jd828jd"),update(VERSION)%7D%3B%7D)()