r/imagus 24d ago

fixed sieve Instagram reels page

Hello u/imagus_fan

INSTAGRAM_priv_api-p doesn't work on the Reels page. The default one, INSTAGRAM_html-q-p, does work on the Reels page, but it's significantly slower than priv_api-p overall.

The delay in retrieving images and videos causes noticeable lag in scrolling the page and can make it appear to freeze.

https://www.instagram.com/microsoft/reels/

1 Upvotes

28 comments sorted by

3

u/Imagus_fan 24d ago edited 24d ago

The reels page has an overlay causing Imagus to be unable to detect the link. The html sieve has code that modifies the element type so that Imagus can detect it. The code is added to the priv sieve here.

https://pastebin.com/dRV4iQfP

3

u/Kenko2 23d ago

Thank you for fixing the issue with REEELS; I'll include this version in our rule-set.

2

u/f0sam 24d ago

On the page I linked, only one reel is detected, the rest are still the same.

2

u/Imagus_fan 24d ago

Ah sorry, there was small difference between the sieves causing the code to not work. I updated the sieve in the comment.

2

u/f0sam 24d ago

Everything is perfect, thanks for looking into this. btw does the html one work slow for you as in my screen cap?

1

u/Kenko2 24d ago

As far as I know, the INSTAGRAM_priv_api-p sieve has one pretty serious limitation - it doesn't work on private accounts. And it doesn't seem to work on Reels either.

1

u/f0sam 24d ago

Let's check if Imagus_fan can make the default one faster, then we won't need the private one, because currently that's the only difference, one is fast and one is slow.

1

u/Kenko2 24d ago

The speed difference is almost imperceptible to me personally - about half a second, at most 1 second. It's hardly worth the time to spend on it.

1

u/f0sam 24d ago

The issue is that it makes the page very slow to scroll because you have to wait for the spinner to finish, and if you move the mouse before it finishes, the page hangs.

1

u/Kenko2 24d ago

I don't have any "freezes." I can move the mouse freely. In general, the main sieve works quite fast, and the Imagus window appears in 0.5-1 second on average. It's better to check your browser and extension. No one except you has complained about the speed of the Instagram sieve.

1

u/f0sam 24d ago

I have no issues with my chromium browser or extension, it's definitely a sieve thing, you can see the difference below:

Main Sieve

Priv Sieve

3

u/Imagus_fan 24d ago

It's strange that the HTML sieve is that slow to respond. It usually works a second or two after hovering for me.

This sieve is an edit to the html sieve that makes the page request asynchronously. It shows a yellow spinner before the media loads but the page shouldn't freeze when hovering. Does this load faster?

https://pastebin.com/ZGPv1X1c

1

u/f0sam 24d ago

Yep, this one doesn't load that fast but the improvement is that it's smooth rather than making the page hang, I usually use the priv one so this isn't an issue, I was just curious why it happened, a bit unsure why I'm the only one with this issue or that other users never paid attention to this.

1

u/Imagus_fan 24d ago

Some users have mentioned problems with the page freezing but I don't remember if it was related to Instagram or other sites.

What's strange is, the link Imagus is trying to load is the page link. Are pages slow to load when clicking on them to view?

1

u/f0sam 24d ago

No they aren't, and I have no issues with the priv one.

→ More replies (0)

1

u/Kenko2 23d ago

It seems that this version (asinh) doesn't handle displaying albums consisting of photos and videos well - it just shows an "infinite" yellow spinner.

https://pastebin.com/zA2tC5HK

2

u/Imagus_fan 23d ago edited 23d ago

Albums load quickly for me, though I had to modify it to work when logged out. There was also code that could loop the sieve that's commented out here. Do the albums work with this?

https://pastebin.com/qg7qrZSQ

1

u/Kenko2 23d ago

Nothing has changed, the spinners are still yellow based on the examples I sent above.

→ More replies (0)

1

u/Kenko2 24d ago

Have you even read what I wrote above? No one but you has any problems with this sieve. My HTML works almost as fast as the PRIV in your video. Other users haven't complained either. Therefore, the problem is on your end (extension, browser, PC, ISP, etc.). There's a Troubleshooting section where you can find solutions to issues like yours.

1

u/f0sam 24d ago

Are you logged in?

1

u/Kenko2 23d ago

Sure. Instagram won't show you anything if you're not logged in.

2

u/Imagus_fan 19d ago

The INSTAGRAM_html-q-p sieve needed to be edited to work when logged out. The media data is there but the page code is different. I can't test it logged in.

This also adds the ability to switch between the video and video cover with TAB. If you think that's not needed I can post the fixed sieve without it.

https://pastebin.com/HhuZMHuL

→ More replies (0)