theus / instantgram Goto Github PK
View Code? Open in Web Editor NEW:cloud: A bookmarklet for download photos in Instagram
Home Page: http://theus.github.io/instantgram
License: Other
:cloud: A bookmarklet for download photos in Instagram
Home Page: http://theus.github.io/instantgram
License: Other
Currently it opens images/videos in a foreground tab. Opening a background tab would be very nice. Look here for some options. http://stackoverflow.com/questions/10812628/open-a-new-tab-in-the-background
When I try to use it on instagram posts on my feed or on someone's profile i get a message saying "Ops, did you open any Instagram post? Like for example instagram.com/p/82jd828jd"
It appears to work fine on instagram stories still though.
Hi,
I've been using [instantgram] occasionally on Safari on my MBP, and it works 100% of the time that I've used it.
However, pretty recently, every time I use the bookmarklet, it transfers me to a new tab with nothing but the text "URL signature mismatch"
I restarted my laptop and now it only works for a few photos, but for most posts I'm still receiving that error message.
Thanks for your time! I really love using the function of the bookmarklet; hope we can find a fix!
It works for video posts, but:
[instantgram] set language: en-US
For more information about available languages please check http://theus.github.io/instantgram
for first photo in album (carousel) same thing, but for all next photos it works
for stories don't work, error in console:
VM224:1 ImageVideoInStories() [instantgram] 4.0.7 TypeError: Cannot read properties of null (reading 'querySelectorAll')
at t.execute (<anonymous>:1:10365)
at Module.<anonymous> (<anonymous>:1:16465)
at n (<anonymous>:1:123)
at <anonymous>:1:915
at <anonymous>:1:924
at <anonymous>:1:16784
Hello!
I would like to report an issue
For the past few hours the bookmarklet gets a cropped version of the picture published in an instagram story.
Example:
If you go to Brabus instagram page (theofficialbrabus)
Select the first highlighted story called COLLECTION 2021
And use the borkmarklet on the first story
https://www.instagram.com/stories/highlights/17854622675293273/
you will get this cropped 828x828 version of the pic
Instead of this 828x1472 version of the pic
I tried the 4.0.1 beta version in has the same issue
Thank you in advance
:)
I've seen two accounts recently banned out of the blue, no other actions/posts/messaging/etc. done with the accounts. One of them was even newly created (from new IP, email), before getting a notification days later that the account was disabled for TOS violation.
The only thing I can surmise is that Instagram is detecting use of this script, watching for if/when an account accesses a photo resource (i.e. high-def) that it otherwise shouldn't be able to access, at least directly.
Could this be what's happening?
As the title says I can't seem to get the tool to work with Instagram any longer. Whenever I attempt to click on the bookmark to open the image I get a white page that just says, URL signature mismatch
.
Topic.
I'm on chrome 75.0.3770.142 in the United States using Instantgram 3.0.1
Example post: https://www.instagram.com/p/Bzw1fF5Fd7W/
searchVideoInPage() [instantgram] 4.0.3 TypeError: n.querySelectorAll is not a function
at t.default (:1:11018)
at Object. (:1:3076)
at n (:1:123)
at :1:915
at :1:924
at :1:19241
Hi, it is getting the first image from a post with multiple images but not any others.
I haven't tried with multiple videos yet.
This is only since the new IG update.
Posts with a single image work file, but if the post has more than one image it doesnt work.
I’m increasingly encountering Instagram posts serving up non-responsive img
tags where the image element includes only a src
attribute, with no srcset
attribute.
Compare these two posts: https://www.instagram.com/p/CU2EYSjtTKN/ and https://www.instagram.com/p/CU0WiSkpL_9/
The markup for the first includes both src
and srcset
attributes, the second only src
. The bookmarklet only works for me on the first.
The bookmarklet drag doesn't work on the latest Chrome stable or Canary on Mac. What's the link for a manual install?
Hi there, pretty self explanatory problem.
I get that error on Edge Chromium, but not on firefox for some reason.
When i go to a video or reel and click on the bookmark nothing happens.
See screen recording attached.
Seems to have stopped working on video files as of Jan 9th in Firefox 72.0.1 64bit U.S. region.
I get the error box, "Ops, did you open any Instagram post? Like for example instagram.com/p/82jd828jd." Sometimes it opens a still of the video as a new tab, but not often.
Well when this used to work some time back in the new Microsoft Edge browser. I usually use Mozilla Firefox but I have my account logged in and today when I tried using it, it doesn't open the new tab like it should.
Hello!
I would like to report an issue
For the past few hours the bookmarklet stopped getting videos from posts
It does nothing if I open a post that includes a video
If I use the applet in my feed I receive the following error:
If you're trying open a video, try enter on Instagram post page. Like for example instagram.com/p/82jd828jd. If you're already in it, try refreshing the page before running [instantgram] or open the post in a new tab. (this proccess is neccessary only for videos)
I tried the 4.0.1 beta version and it just doesn't do a thing
Thank you in advance
:)
For any instagram posts with multiple photos, it returns message "Ops, did you open any Instagram post? Like for example instagram.com/p/82jd828jd", despite URL being in the correct format.
Yesterday I got a new story UI. Ever since then, if I run instantgram I get the following error in console
[instantgram] set language: undefined
For more information about available languages please check http://theus.github.io/instantgram
I am not well aware of the technicalities of instantgram. Would it be possible to implement such functionality to show full resolution profile picture?
Hi,
The extension does not work anymore : nothing happens when clicking on it when being on an instagram post.
Used to work on iOS Safari browser in previous versions.
Bookmarklet stopped working few months ago.
Everything works great in this new version expect Reels videos. Is there any fix?
When I try to use the bookmarklet, instead of getting the image as expected, I receive the following notification in the web console:
[instantgram] set language: undefined
For more information about available languages please check http://theus.github.io/instantgram
However, there doesn't appear to be any documentation around this (unless I am blind?)
Otherwise great work!
I've been using this almost daily for image scraping since around version 3.0.0, and these are a few bugs I've noticed. Some have popped up more recently, some have been an issue for a while. (Thanks BTW theus, the bookmark has infinitely improved my workflow as opposed to when I had to inspect element everything.)
The first issue is pretty straight forward, but when you attempt to extract the last image in a post with multiple images, it will instead extract the image or video which came before it in the post. This is really only a mild annoyance as you're still able to pull it from inspecting it. This also only happens on the actual feed, when you actually go view the post through their profile it works fine.
The second issue is the stories cropping issue from the other recently posted issue report. It's possible it may only be an issue for Firefox users, but I'm pretty sure it has more to do with the size of the source files being posted, as it only consistently happens to a few specific users for me. When you inspect element the story and hover over the image, it's full sized. But when you actually open the image using the URL, it's the cropped version. This one's slightly more annoying, as the only way to get the full sized image is by using some sort of story grabber site (like this or this). I have no idea what they're doing on their end that solves the issue, but it's probably something to look into.
Finally the last and most concerning issue, the one that prompted me to make this report, is the new stories layout. I saw in a previous report that you said you didn't have the new layout, but hopefully you'll have it soon so you can evaluate it for yourself, as this completely breaks using the bookmark for stories. You're essentially only able to pull the images from the first user in the stories feed. Once you move to the next user, you're unable to pull any images from their stories, and it will automatically attempt to pull the last image in a previous users story. However, even this doesn't work, as if none of the previous users have an image for their final story, it will simply open a page with a URL mismatch or the first frame of their video.
Hello dear Instantgram developer.
I am extremely convinced of your program if you want to save a picture quickly without using the better program instaloader
which is only accessible via the CLI and supports everything. But not many are familiar with a CLI, so it's the best bookmark for simplicity. And that led me to quickly save a picture or video on a mobile device, but just how?
UPDATE: It worked with mobile devices with tricks.
Android: Paste that in the URL Bar
javascript:(function()%7B;!function(e)%7Bvar%20t=%7B%7D;function%20n(r)%7Bif(t%5Br%5D)return%20t%5Br%5D.exports;var%20a=t%5Br%5D=%7Bi:r,l:!1,exports:%7B%7D%7D;return%20e%5Br%5D.call(a.exports,a,a.exports,n),a.l=!0,a.exports%7Dn.m=e,n.c=t,n.d=function(e,t,r)%7Bn.o(e,t)%7C%7CObject.defineProperty(e,t,%7Benumerable:!0,get:r%7D)%7D,n.r=function(e)%7B%22undefined%22!=typeof%20Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,%7Bvalue:%22Module%22%7D),Object.defineProperty(e,%22__esModule%22,%7Bvalue:!0%7D)%7D,n.t=function(e,t)%7Bif(1&t&&(e=n(e)),8&t)return%20e;if(4&t&&%22object%22==typeof%20e&&e&&e.__esModule)return%20e;var%20r=Object.create(null);if(n.r(r),Object.defineProperty(r,%22default%22,%7Benumerable:!0,value:e%7D),2&t&&%22string%22!=typeof%20e)for(var%20a%20in%20e)n.d(r,a,function(t)%7Breturn%20e%5Bt%5D%7D.bind(null,a));return%20r%7D,n.n=function(e)%7Bvar%20t=e&&e.__esModule?function()%7Breturn%20e.default%7D:function()%7Breturn%20e%7D;return%20n.d(t,%22a%22,t),t%7D,n.o=function(e,t)%7Breturn%20Object.prototype.hasOwnProperty.call(e,t)%7D,n.p=%22%22,n(n.s=0)%7D(%5Bfunction(e,t,n)%7B%22use%20strict%22;n.r(t);var%20r=%7Blangs:%7B%22de-DE%22:%7B%22helpers.localize_defaultlang%22:%22Ausgewählte%20Sprache:%20$%7BLANG_DEFAULT%7D%20%5Cn%20Weitere%20Informationen%20zu%20den%20unterstützten%20Sprachen%20findest%20du%20auf%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20ist%20veraltet.%20Bitte%20besuche%20die%20Seite%20http://theus.github.io/instantgram%20für%20ein%20Update.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Installierte%20Version%20$%7Bdata.version%7D%20%7C%20Neue%20Version:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20sucht%20nach%20neuen%20verfügbaren%20Updates…%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20wurde%20aktualisiert.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20hat%20ein%20neues%20Update%20gefunden.%5CnBitte%20besuche%20die%20Seite%20http://theus.github.io/instantgram,%20um%20das%20Update%20zu%20installieren.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20funktioniert%20nur%20mit%20instagram.com.%22,%22index%23program%23modal@alert_dontFound%22:%22%5Binstantgram%5D%20konnte%20kein%20Bild%20in%20diesem%20Post%20finden.%20Bitte%20öffne%20den%20Link%20in%20einem%20neuen%20Tab.%22,%22index%23program%23post@alert_dontFound%22:%22Ops,%20%5Binstantgram%5D%20konnte%20leider%20kein%20Bild%20finden%20%20:-(%22,%22index%23program%23screen@alert_dontFound%22:%22%5Binstantgram%5D%20hat%20mehr%20als%201%20Bild%20gefunden.%20Bist%20du%20in%20der%20Profilansicht?%20Falls%20ja,%20öffne%20bitte%20zuerst%20einen%20einzelnen%20Post%20und%20führe%20%5Binstantgram%5D%20erneut%20aus.%22,%22index%23program@alert_dontFound%22:%22Ops,%20hast%20du%20einen%20Instagram%20Post%20geöffnet?%20Zum%20Beispiel%20instagram.com/p/82jd828jd%22%7D,%22en-US%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20set%20language:%20$%7BLANG_DEFAULT%7D%20%5Cn%20For%20more%20information%20about%20available%20languages%20please%20check%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20is%20outdated.%20Please%20check%20http://theus.github.io/instantgram%20for%20available%20updates.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Installed%20version:%20$%7Bdata.version%7D%20%7C%20New%20update:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20is%20looking%20for%20available%20updates…%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20updated%20your%20current%20version.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20found%20a%20new%20available%20update.%5CnPlease%20check%20http://theus.github.io/instantgram%20to%20install%20it.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20only%20works%20on%20instagram.com.%22,%22index%23program%23modal@alert_dontFound%22:%22%5Binstantgram%5D%20didn't%20find%20any%20image%20in%20this%20Instagram%20post.%20Please%20try%20to%20open%20the%20link%20in%20a%20new%20tab.%22,%22index%23program%23post@alert_dontFound%22:%22Ops,%20%5Binstantgram%5D%20couldn't%20find%20any%20image%20%20:-(%22,%22index%23program%23screen@alert_dontFound%22:%22%5Binstantgram%5D%20found%20more%20than%201%20image.%20Are%20you%20on%20a%20profile%20page?%20If%20yes,%20please%20open%20a%20single%20post%20first%20and%20open%20%5Binstantgram%5D%20again.%22,%22index%23program@alert_dontFound%22:%22Ops,%20did%20you%20open%20any%20Instagram%20post?%20Like%20for%20example%20instagram.com/p/82jd828jd%22%7D,%22es-AR%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20elegir%20idioma:%20$%7BLANG_DEFAULT%7D%20%5Cn%20Para%20más%20información%20acerca%20de%20los%20idiomas%20disponibles,%20por%20favor%20visite%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20está%20desactualizado.%20Por%20favor%20visite%20http://theus.github.io/instantgram%20para%20ver%20actualizaciones.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Versión%20instalada:%20$%7Bdata.version%7D%20%7C%20Nueva%20actualización:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20está%20buscando%20nuevas%20actualizaciones…%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20actualizó%20a%20la%20versión%20actual.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20encontró%20una%20nueva%20actualización%20disponible.%5CnPor%20favor%20visite%20http://theus.github.io/instantgram%20para%20instalarla.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20sólo%20funciona%20en%20instagram.com.%22,%22index%23program%23modal@alert_dontFound%22:%22%5Binstantgram%5D%20no%20encontró%20ninguna%20imagen%20en%20esta%20publicación%20de%20Instagram.%20Por%20favor%20intente%20abrir%20el%20link%20en%20una%20nueva%20pestaña.%22,%22index%23program%23post@alert_dontFound%22:%22Ups,%20%5Binstantgram%5D%20no%20pudo%20encontrar%20ninguna%20imagen%20:-(%22,%22index%23program%23screen@alert_dontFound%22:%22%5Binstantgram%5D%20encontró%20más%20de%201%20imagen.%20¿Estás%20en%20una%20página%20de%20perfil?%20Si%20es%20as%C3%AD,%20por%20favor%20ingresa%20en%20una%20publicación%20y%20luego%20abre%20%5Binstantgram%5D%20nuevamente.%22,%22index%23program@alert_dontFound%22:%22Ups,%20abriste%20alguna%20publicación%20de%20Instagram?%20Por%20ejemplo%20instagram.com/p/82jd828jd%22%7D,%22pt-BR%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20idioma%20configurado:%20$%7BLANG_DEFAULT%7D%20%5Cnpara%20mais%20informações%20sobre%20os%20idiomas%20suportados,%20acesse%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20está%20desatualizado.%20Acesse%20http://theus.github.io/instantgram%20para%20atualizar%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20versão%20local:%20$%7Bdata.version%7D%20%7C%20nova%20versão:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20está%20procurando%20atualizações...%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20informações%20locais%20atualizadas%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20encontrou%20uma%20atualização.%5Cn%20acesse%20theus.github.io/instantgram%20para%20atualizar%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20somente%20funciona%20no%20instagram.com%22,%22index%23program%23modal@alert_dontFound%22:%22%5Binstantgram%5D%20não%20encontrou%20uma%20imagem%20em%20um%20post.%20Tente%20abrir%20o%20link%20em%20uma%20nova%20aba.%22,%22index%23program%23post@alert_dontFound%22:%22ops,%20%5Binstantgram%5D%20não%20encontrou%20a%20imagem%20:(%22,%22index%23program%23screen@alert_dontFound%22:%22%5Binstantgram%5D%20a%20procura%20por%20imagem%20na%20tela%20encontrou%20mais%20de%201%20imagem.%20Você%20está%20em%20um%20perfil?%20Se%20sim,%20abra%20alguma%20imagem%20antes%20de%20rodar%20o%20%5Binstantgram%5D%22,%22index%23program@alert_dontFound%22:%22ops,%20você%20está%20em%20algum%20post%20do%20instagram?%20ex:%20instagram.com/p/82jd828jd%22%7D%7D%7D,a=%7Bde:%22de-DE%22,pt:%22pt-BR%22,en:%22en-US%22,%22en-GB%22:%22en-US%22%7D%5Bnavigator.language%5D%7C%7C%22en-US%22;function%20o(e,t)%7Bvoid%200===t&&(t=a);try%7Breturn%20r.langs.hasOwnProperty(t)%7C%7C(t=%22en-US%22),r.langs%5Bt%5D%5Be%5D?r.langs%5Bt%5D%5Be%5D:%22%22%7Dcatch(n)%7Breturn%20console.error(%22%5Binstantgram%5DLOC%20error:%22,n),%22ops,%20an%20error%20ocurred%20in%20localization%20system.%20Enter%20in%20https://github.com/theus/instantgram/issues/new%20and%20open%20an%20issue%20with%20this%20code:%20'LOC_dont_found_str_neither_default:%5B%22+t+%22-%3E%22+e+%22%5D'%5Cn%20%20%20%20for%20more%20information%20open%20the%20console%22%7D%7Dconsole.info(o(%22helpers.localize_defaultlang%22).replace(%22$%7BLANG_DEFAULT%7D%22,a));var%20i=o;function%20s(e)%7Bvar%20t=window,n=e.getBoundingClientRect();return%20n.bottom%3E0&&n.right%3E0&&n.left%3Ct.innerWidth&&n.top%3Ct.innerHeight%7Dfunction%20l(e)%7Bvar%20t=e%5BObject.keys(e).find(function(e)%7Breturn%20e.includes(%22Instance%22)%7D)%5D.return.memoizedProps.fallbackSrc;return%20t%7C%7Cnull%7Dvar%20d=function()%7Bfunction%20e(e,t)%7Bthis._program=e,this._module=t%7Dreturn%20e.prototype.image=function(e)%7Bthis._program.setImageLink(e),this._program.foundImage=!0,this._program.foundByModule=this._module.getName(),window.open(this._program.imageLink)%7D,e.prototype.video=function(e)%7Bvar%20t=function(e)%7Bvar%20t=new%20URL(e);return%20t.host=%22scontent.cdninstagram.com%22,t.href%7D(e);window.open(t),this._program.foundByModule=this._module.getName(),this._program.foundVideo=!0,this._program.alertNotInInstagramPost=!0%7D,e%7D(),u=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInPage%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(1!==document.querySelectorAll(%22main%20%3E%20section%22).length);else%7Bvar%20n=document.querySelector(%22main%20%3E%20section%22),r=void%200,a=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20article%22));r=a.length%3E1?3==a.length?a%5BMath.floor(a.length/2)%5D:2==a.length?1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?a.reverse().shift():a.reverse().pop():a%5BMath.floor(a.length/2)%5D:n.querySelector(%22video%22);var%20o=void%200,i=Array.from(r.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);i.length%3E1?(3==i.length?o=i%5BMath.floor(i.length/2)%5D:2==i.length&&(o=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?i.reverse().shift():i.reverse().pop()),o=o.querySelectorAll(%22video%22)):o=n.querySelectorAll(%22video%22);for(var%20u=0;u%3Co.length;u++)if(s(o%5Bu%5D))%7Bvar%20m=new%20d(e,this),g=o%5Bu%5D.src;if(g)%7Bif(-1!==g.indexOf(%22blob:%22))%7Bg=l(o%5Bu%5D),m.video(g);break%20e%7Dm.video(g),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInPage()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),m=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageVideoInStories%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1,n=null;try%7Bif(e.regexStoriesURI.test(e.path))%7Bvar%20r=document.getElementById(%22react-root%22),a=r.querySelectorAll(%22video%20%3E%20source%22),o=r.querySelector(e.mediaImageElExpression)%7C%7Cr.querySelector(e.mediaImageElExpressions.img),i=%22%22;a.length%3E0?(i=a%5B0%5D.src,n=%22video%22):(i=o.src,n=%22image%22);var%20s=new%20d(e,this);if(i&&(s%5Bn%5D(i),t=!0),!1===t&&e.videos.length%3E0)%7Bvar%20l=e.videos%5B0%5D.src;if(!l&&e.videos%5B0%5D.children)l=e.videos%5B0%5D.children%5B0%5D.src;l&&(s.video(l),t=!0)%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageVideoInStories()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),g=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(1!==document.getElementsByTagName(%22article%22).length);else%7Bvar%20n=document.querySelector(%22article%22),r=void%200,a=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);a.length%3E1?(3==a.length?r=a%5BMath.floor(a.length/2)%5D:2==a.length&&(r=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?a.reverse().shift():a.reverse().pop()),r=r.querySelectorAll(%22video%22)):r=n.querySelectorAll(%22video%22);for(var%20o=0;o%3Cr.length;o++)if(s(r%5Bo%5D))%7Bvar%20i=new%20d(e,this),u=r%5Bo%5D.src;if(u)%7Bif(-1!==u.indexOf(%22blob:%22))%7Bu=l(r%5Bo%5D),i.video(u);break%20e%7Di.video(u),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),c=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInModalPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(2!==document.getElementsByTagName(%22article%22).length);else%7Bvar%20n=document.getElementsByTagName(%22article%22)%5B1%5D,r=void%200,a=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);a.length%3E1?(3==a.length?r=a%5BMath.floor(a.length/2)%5D:2==a.length&&(r=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?a.reverse().shift():a.reverse().pop()),r=r.querySelectorAll(%22video%22)):r=n.querySelectorAll(%22video%22);for(var%20o=0;o%3Cr.length;o++)if(s(r%5Bo%5D))%7Bvar%20i=r%5Bo%5D.src,u=new%20d(e,this);if(i)%7Bif(-1!==i.indexOf(%22blob:%22))%7Bi=l(r%5Bo%5D),u.video(i);break%20e%7Du.video(i),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInModalPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),f=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInPage%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(1!==document.querySelectorAll(%22%23react-root%20%3E%20section%22).length);else%7Bfor(var%20n=document.querySelector(%22%23react-root%20%3E%20section%22).querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20article%22),r=void%200,a=0;a%3Cn.length;a++)if(s(n%5Ba%5D))%7Bvar%20o=n%5Ba%5D.querySelector(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20img%22);o&&(r=o.src);break%7Dif(!r)%7Bvar%20i=Array.from(n%5B0%5D.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);if(i)%7Bvar%20l=void%200;if(i.length%3E1)3==i.length?l=i%5BMath.floor(i.length/2)%5D:2==i.length&&(l=1==n%5B0%5D.querySelector(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%22).getElementsByClassName(%22coreSpriteLeftChevron%22).length?i.reverse().shift():i.reverse().pop()),r=(l=l.querySelector(e.mediaImageElExpression)).src%7D%7Dr?((new%20d(e,this)).image(r),t=!0):e.context=%7BhasMsg:!0,msg:%22index%23program%23post@alert_dontFound%22%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInPage()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),p=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(1===document.getElementsByTagName(%22article%22).length)%7Bvar%20n=document.querySelector(%22article%22),r=void%200,a=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);a.length%3E1?(3==a.length?r=a%5BMath.floor(a.length/2)%5D:2==a.length&&(r=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?a.reverse().shift():a.reverse().pop()),r=r.querySelectorAll(e.mediaImageElExpression)):r=n.querySelectorAll(e.mediaImageElExpression);for(var%20o=0;o%3Cr.length;o++)if(s(r%5Bo%5D))%7Bvar%20i=r%5Bo%5D.src;i?((new%20d(e,this)).image(i),t=!0):e.context=%7BhasMsg:!0,msg:%22index%23program%23screen@alert_dontFound%22%7D,e.alertNotInInstagramPost=!1%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),h=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInModalPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(2===document.getElementsByTagName(%22article%22).length)%7Bvar%20n=document.getElementsByTagName(%22article%22)%5B1%5D,r=void%200,a=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);a.length%3E1?(3==a.length?r=a%5BMath.floor(a.length/2)%5D:2==a.length&&(r=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?a.reverse().shift():a.reverse().pop()),r=r.querySelectorAll(e.mediaImageElExpression)):(r=n.querySelectorAll(e.mediaImageElExpression))&&0===r.length&&(r=n.querySelectorAll(e.mediaImageElExpression));for(var%20o=0;o%3Cr.length;o++)if(s(r%5Bo%5D))%7Bvar%20i=r%5Bo%5D.src;i?((new%20d(e,this)).image(i),t=!0):e.context=%7BhasMsg:!0,msg:%22index%23program%23modal@alert_dontFound%22%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInModalPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D();var%20v=%7Bcover:'img%5Bstyle=%22object-fit:%20cover;%22%5D',srcset:%22img%5Bsrcset%5D%22,img:%22img%22%7D,y=%7BVERSION:%224.0.5%22,mediaImageElExpressions:v,mediaImageElExpression:window.navigator.userAgent.indexOf(%22Edge%22)%3E-1%7C%7Cwindow.navigator.userAgent.indexOf(%22Edg%22)%3E-1?v.cover:v.srcset,hostname:window.location.hostname,path:window.location.pathname,images:%5B%5D,imagesOnViewPort:%5B%5D,videos:document.querySelectorAll(%22video%22),regexOriginalImage:/%5C/%5Ba-z%5D+%5Cd+%5Ba-z%5D?x%5Cd+%5Ba-z%5D?/,regexMaxResImage:/%5C/%5Ba-z%5D+%5B1080%5D+%5Ba-z%5D?x%5B1080%5D+%5Ba-z%5D?/,regexPath:/%5E%5C/p%5C//,regexHostname:/instagram%5C.com/,regexStoriesURI:/stories%5C/(.*)+/,regexURL:/(%5B--:%5Cw?@%25&+~%23=%5D*%5C.%5Ba-z%5D%7B2,4%7D%5C/%7B0,2%7D)((?:%5B?&%5D(?:%5Cw+)=(?:%5Cw+))+%7C%5B--:%5Cw?@%25&+~%23=%5D+)?/,foundByModule:null,probablyHasAGallery:%7Bcheck:null,byModule:%22%22%7D,setImageLink:function(e)%7Bthis.imageLinkBeforeParse=e,this.regexMaxResImage.test(e)?this.imageLink=e:this.imageLink=this.regexOriginalImage.test(e)?e.replace(this.regexOriginalImage,%22%22):e%7D,foundVideo:!1,foundImage:!1,imageLink:!1,imageLinkBeforeParse:!1,alertNotInInstagramPost:!1,context:%7BhasMsg:!1,msg:%22%22%7D%7D,I=document.images;!function(e,t,n)%7Bfor(var%20r=0;r%3Ce.length;r++)t.call(n,r,e%5Br%5D)%7D(I,function(e,t)%7Bvar%20n=t;((function(e)%7Breturn%20function(e)%7Bvar%20t=%5B%5D;for(t.push(e);e.parentNode;)t.unshift(e.parentNode),e=e.parentNode;return%20t%7D(e).filter(function(e)%7Breturn%22ARTICLE%22===e.nodeName%7D).length%3E0%7D)(n)%7C%7C2===I.length)&&(y.images.push(n),s(n)&&y.imagesOnViewPort.push(n))%7D),y.regexHostname.test(y.hostname)%7C%7Cwindow.alert(i(%22index@alert_onlyWorks%22)),y.regexHostname.test(y.hostname)&&(!1===(new%20u).execute(y)&&!1===(new%20m).execute(y)&&!1===(new%20g).execute(y)&&!1===(new%20c).execute(y)&&!1===(new%20p).execute(y)&&!1===(new%20h).execute(y)&&!1===(new%20f).execute(y)&&(y.context.hasMsg=!1),y.context.hasMsg&&window.alert(i(y.context.msg)),!y.alertNotInInstagramPost%7C%7Cy.foundVideo%7C%7Cy.foundImage%7C%7Cwindow.alert(i(%22index%23program@alert_dontFound%22)))%7D%5D);%7D)()
iOS: Paste that too but in the Favorits.
Thanks for reading
Similar to issue #6 if a video is attached to a post that has multiple photos, Instantgram seems to prefer grabbing the video. Even more troublesome, if there's more than one video attached, it's inconsistent as to which video it attempts to grab. Later photos in a set seem to be extracted correctly if and only if a video isn't 'near' them.
Hi,
Does anyone know how to use this bookmarklet on Android (Chrome or Firefox). I saved the bookmarklet, but nothing happens when opening the bookmark when browsing an Instagram page.
Thanks
As cited at #13 (comment)
Using Instantgram on my recent post directs to a blank page with the text "Invalid URL Signature".
Post: https://www.instagram.com/p/BkC7Iuznjby/?taken-by=joewbrown
Instantgram result: https://scontent-lga3-1.cdninstagram.com/vp/38fe1b859f99f6b64ccc0739dc900b43/5BA4B8BC/t51.2885-15/e35/34174682_201610923798305_8986516405935407104_n.jpg
Hi, 4.0.7 with Firefox 97.0.1.
Videos open two tabs, sometimes the same video, sometimes two videos, and they are all of lower quality than normal.
Single image posts mostly do not open however multi-image posts all seem to work well.
Thank you for everything.
I recently noticed that Instantgram 3.0.1 doesn't get the highest possible resolution when getting images and videos. I noticed that when I was using the website https://deskgram.net/ the images and videos were very clear, so I compared them with the images and videos Instantgram gets and noticed that the resolutions were significantly higher on Deskgram. Here are some examples:
Image:
Instantgram (Resolution: 1080x1350): https://www.instagram.com/p/Bz6FKcxgTpp/
Deskgram (Resolution: 1440x1800): https://deskgram.net/p/2088004085562292841_25025320
Video:
Instantgram (Resolution: 480x600): https://www.instagram.com/p/Bz3hiBfg4iK/
Deskgram (Resolution 720x900): https://deskgram.net/p/2087284425909045386_25025320
IGTV:
Instantgram (Resolution: 480x852): https://www.instagram.com/p/Bz3bsXoAU_V/
Deskgram (Resolution: 720x1280): https://deskgram.net/p/2087258748589526997_25025320
I don't know how Deskgram gets the videos and images in such high resolutions, but I thought you'd like to know about it.
Keep receiving error message when trying to use for carousel: "Ops, did you open any Instagram post? Like for example instagram.com/p/82jd828jd"
Works fine for single images still. Thanks, love the bookmarklet it's so handy
With the feature to add more than one to photo to a post on Instagram, it seems that no matter which photo i choose in the post it always defaults either to the first photo in the post, or randomly the second photo in the post, I can never seem to get further.
Instagram changed recently the Content Security Policy header settings to their "secure domains". Now, [instantgram] can't search for an update because this module uses a request to [instantgram] page in Github to get the last version of himself.
[instantgram] can't advise users a new update, difficulting for the users. For while, [instantgram] is working but future fix versions are compromised (or at least will be harder to user find an update)
PS: In theory, CSP can disable unsafe-inline
and unsafe-eval
but I don't know what this can change [instantgram] work, because, in theory, it uses an inline script directly in console
by a bookmarklet.
Can we please somehow extract full size images of archived story preview images - i.e. the circle image you click to open the archived story?
Thanks for the great tool. Recently started getting an error.
On Thursday night I received the message about an update so I deleted the old bookmark and added the new one. Using Firefox Quantum 61.0.1 on Windows 10:
Login to Instagram.com, go to any persons page (https://www.instagram.com/therock/), click on a pic in his grid, click the bookmark, receive Invalid URL signature message.
If I am on the main Instagram page and scrolling down the list of pictures from people I follow the bookmark works properly and I get a full size pic. It only gives the invalid signature error when I go directly to a persons page, scroll through their pics, click on one and then use the bookmark.
When I click on bookmarklet nothing happens.
When using the bookmarklet in Safari 15.1 (but also 15.0) on a story I just get the still image of that video. When I do the same in Firefox (93) I get the video.
Catalina 10.15.7
Thanks a lot for the bookmarklet.
As of last week, posts that have multiple images/videos no longer open.
Only working for single images. Posts with multiple images/videos are not working, I get the error message "Ops, did you open any Instagram post? Like for example instagram.com/p/82jd828jd"
I am using Chrome
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.