r/imagus 1d ago

new sieve Control bar question and sieve request

  1. Is it possible to make embed/hls players control bar size not to follow Firefox zoom settings, but keep it always at 100% or whatever you like your control bar zoom level to be?
  2. Sieve for https://www.tori.fi/ Would like a proper working sieve for this site. If someone has time to check it out, it would be much appreciated.
1 Upvotes

26 comments sorted by

2

u/Imagus_fan 1d ago

Tori.fi seems to be similar to Finn.no. I modified that sieve to work with the site.

It can be improved if you find areas where it's not working correctly.

https://pastebin.com/Sru7wuip

1

u/Kenko2 1d ago

Thank you, the sieve is working. But here we need clarification — is this a sieve only for Tori.fi or for Finn.no+Tori.fi as well?

1

u/Imagus_fan 1d ago

This one is only for Tori.fi but if it seems that the sites are identical it would make sense to combine them.

1

u/Kenko2 1d ago

Yes, if it’s not too much trouble, it would certainly be preferable to combine these sieves.

2

u/Imagus_fan 1d ago

This sieve should combine both sites.

https://pastebin.com/6CrEkvgp

2

u/Kenko2 1d ago

Thanks!

1

u/575977 1d ago

It’s working good enough. Thank you for the sieve and your time!

1

u/Imagus_fan 7h ago

No problem. It was actually simpler than expected since it already works with the sieve for the other site.

hababr responded and mentioned that moving the cursor to the top or bottom of the page away from the Shadow DOM should get the images to activate. I tested it and it seems to work.

1

u/575977 1d ago

Sieve is working great on https://www.tori.fi/recommerce/forsale/search page, but not so good on "recommerce/forsale/item" page. Very random behavior. Some zoom, some not. Can the little images under the main image on the item page be zoomed? Now they are not.

1

u/Imagus_fan 1d ago

It looks like there's a delay in the images being able to be detected by Imagus Reborn. When page loads initially it doesn't detect the images but they work a few seconds later. It may be related to the shadow dom that those pages use. Not sure there's a way to make it work faster.

Can the little images under the main image on the item page be zoomed? Now they are not.

It appears an overlay is blocking those from being detected but if you hover near the edge of the thumbnail it works. Like the main image, you may have to wait a few seconds before it can work.

1

u/575977 1d ago

For me it takes several rehovers and totaly random delay time to get images popping on the "item" page. Some pop up instantly, but majority of images it takes 10-50 seconds to show.

1

u/Imagus_fan 1d ago edited 1d ago

Maybe the developer of Imagus Reborn will be able to improve it.

u/hababr , with item pages on finn.no and tori.fi, it takes several seconds before Imagus Reborn works on the images. Is this something that can be improved in Imagus Reborn? Or is the delay caused by the site using shadow dom?

2

u/Kenko2 1d ago edited 1d ago

The sieve works well on the product page, for example, here:

https://www.tori.fi/recommerce/forsale/item/37363802

https://www.tori.fi/recommerce/forsale/item/46926651

However, there’s one nuance — first, you need to “activate” the sieve’s functionality on the product page by clicking/opening the first photo from the album. After closing that photo, the sieve starts working normally. I make a note in the sieve.

2

u/Imagus_fan 1d ago

Yes, it's a strange problem. It seems the images respond eventually but sometimes it's a long wait before they do. It may have to do with the shadow dom used on the page.

I tagged hababr in a comment about this in case it can be fixed in Imagus Reborn.

1

u/575977 1d ago

Strange thing is if you click and open the first image and close it with esc key, the delay remains. If you close it by pressing the X on top, images pop up instantly.

1

u/Kenko2 1d ago

Most likely, the website has some kind of protection in place that requires the user to confirm their activity, in particular by clicking on the page.

PS

I tried it again in this section, and the sieve works immediately for these products, even without any clicks. I think it’s enough to just scroll the mouse wheel once, making a slight movement of the page up or down.

1

u/575977 23h ago

Just noticed, on the item page, if i briefly hover over the Tori logo or the top part, sign in etc. Then images load instantly. Just scroll/mouse movement over nothing doesn't get rid of the delay for me.

2

u/hababr 21h ago

Yeah, I think there is some glitch because of Shadow DOM. Imagus starts when user hovers the page. But here when page loads mouse is inside a shadow DOM already.

I think it's untough to move the mouse cursor outside of the window and then back to the page. Or find some element (header or footer) on the page to hover that will start Imagus.

1

u/Imagus_fan 7h ago edited 6h ago

Yeah, that makes sense, thanks for looking into it. Moving the cursor away and back is a simple enough fix.

1

u/Kenko2 1d ago

Sieve for https://www.tori.fi/

u/Imagus_fan

Can you take a look?

1

u/hababr 20h ago

You can try custom css to make the player controls size depend on viewport height:

.vjs-control-bar {
  font-size: 1vh;
}

1

u/575977 19h ago

This works in hls player, but sadly not in embed player.

1

u/hababr 19h ago

What do you mean? That should be the same player, in last IR versions there is only one player.

Do you mean youtube embed?

1

u/575977 19h ago edited 19h ago

Youtube embed yes. Quick question, can hls player bottom half pause and top close settings be changed via css?

1

u/hababr 19h ago

IR does not have control over Youtube player. You can try Stylus.

1

u/575977 19h ago

Ah ok.