Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.5] Not working anymore on pictures, only working for videos #86

Open
Rocket3192 opened this issue Mar 10, 2023 · 9 comments
Open

Comments

@Rocket3192
Copy link

Rocket3192 commented Mar 10, 2023

Hi, since yesterday or maybe the day before, the script isn't working at all anymore for pictures, it does sort of work for videos though
Instagram must have changed something
The weird thing is that it works for posts on instagram.com (home page), but on a post page instagram.com/XXXXXXX it doesn't work nothing happens when I click on the script

(Version 5.0.5)

Using the latest version of Edge (Chromium)

Console :

ImageInPostAndModal() [instantgram] 5.0.5 TypeError: Cannot read properties of null (reading 'querySelector')
   at t.execute (<anonymous>:1:6315)
   at Module.<anonymous> (<anonymous>:1:15263)
   at n (<anonymous>:1:123)
   at <anonymous>:1:915
   at <anonymous>:1:924
   at <anonymous>:1:15481

Plus, but it wasn't working before either but I never said it here : It doesn't open story pictures

Thank you

@Rocket3192
Copy link
Author

It also works when pages are like this :
image

But not when they're like this (opened in new tab) :
image

@juckono
Copy link

juckono commented Mar 23, 2023

Same on Firefox. Nothing happens when clicking a bookmark on a separate post, but works on homepage.

@eddbaz3
Copy link

eddbaz3 commented Mar 28, 2023

Same issue here in the latest version of Chrome Version 111.0.5563.147 (Official Build) (64-bit)

VM81:1 ImageInPostAndModal() [instantgram] 5.0.5 TypeError: Cannot read properties of null (reading 'querySelector')
at t.execute (:1:6315)
at Module. (:1:15263)
at n (:1:123)
at :1:915
at :1:924
at :1:15481

@rainmakerock
Copy link

I'm using Firefox. Nothing happens when clicking a bookmark on a separate post

@jeohist
Copy link

jeohist commented May 12, 2023

I'm getting the same error in Chrome 113.0.5672.92

@SceptreData
Copy link

SceptreData commented May 31, 2023

My quick fix:

Search the bookmarklet string for the following text:

document.querySelectorAll('article%5Brole=%22presentation%22%5D')

Replace article with div and you should be good to go.

I'm still having the issue where I can't download the 3rd image in a set of 4 or more, but I can only try to work it out from the minified code for so long.

@Wag669
Copy link

Wag669 commented Sep 8, 2023

My quick fix: [...]

Replaced article with div and it seems to be working for now
Thanx!

@Floyd77
Copy link

Floyd77 commented Jan 3, 2024

My quick fix:

Search the bookmarklet string for the following text:

document.querySelectorAll('article%5Brole=%22presentation%22%5D')

Replace article with div and you should be good to go.

I'm still having the issue where I can't download the 3rd image in a set of 4 or more, but I can only try to work it out from the minified code for so long.

Not working on v5.0.6 & Firefox 121

Console output:
ImageInPostAndModal() [instantgram] 5.0.6 TypeError: a is null

It only works with videos and with pages like the first example from @Rocket3192

@SceptreData
Copy link

Yeah, looks like the gang at meta pushed an update. Markup is a bit different. I wrote a hacky fix last night but it was failing in some unexpected places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants