intro-skipper icon indicating copy to clipboard operation
intro-skipper copied to clipboard

Update inject.js

Open rlauuzo opened this issue 1 year ago • 8 comments

rlauuzo avatar May 19 '24 10:05 rlauuzo

It works, but it has too many side effects. Maybe we should try to find a way to focus the button.

jumoog avatar May 19 '24 11:05 jumoog

However, this will only work on TVs now.

rlauuzo avatar May 19 '24 14:05 rlauuzo

That should be fine. I think the issue was mainly the awkwardness of trying to use the pointer before the button faded out again. The only other platform that would really suffer from that is Android TV, but there's a good chance the average person would use an app over the browser.

AbandonedCart avatar May 19 '24 16:05 AbandonedCart

wow it works very smooth on LG

jumoog avatar May 19 '24 16:05 jumoog

That should be fine. I think the issue was mainly the awkwardness of trying to use the pointer before the button faded out again. The only other platform that would really suffer from that is Android TV, but there's a good chance the average person would use an app over the browser.

Yes, for the devices, I think everyone will use an app if there is one available.

jumoog avatar May 19 '24 16:05 jumoog

Amazon Prime Video also has no focus on the button in the browser. You have a mouse on your computer anyway. So it should work.

jumoog avatar May 19 '24 16:05 jumoog

I got some feedback from @Bretterteig "If the intro is at the beginning, the focus disappears from the button as soon as the OSD is faded out"

jumoog avatar May 19 '24 17:05 jumoog

Added a check for TV/browser, so skipping with Enter should work in the browser again.

rlauuzo avatar May 19 '24 17:05 rlauuzo

I got some feedback from @Bretterteig "If the intro is at the beginning, the focus disappears from the button as soon as the OSD is faded out"

Can you test if this now maintains focus without any unexpected side effects?

rlauuzo avatar May 21 '24 12:05 rlauuzo

Can you start a new build for the changes? Or can i replace the .js somewhere?

Bretterteig avatar May 21 '24 15:05 Bretterteig

https://github.com/rlauuzo/intro-skipper/releases/tag/10.9%2Fv0.2.0.6

rlauuzo avatar May 21 '24 16:05 rlauuzo

I got some feedback from @Bretterteig "If the intro is at the beginning, the focus disappears from the button as soon as the OSD is faded out"

This issue is not resolved.

Moreover, when the OSD fades (and the focus on the button is lost) pressing enter does not do anything anymore until a menu item is selected again (so neither skip nor pause)

Edit: Tested on LG webOS Edit2: Same can be seen on web

Bretterteig avatar May 21 '24 16:05 Bretterteig

Hmm... I don't have any of those issues with this version.

rlauuzo avatar May 21 '24 16:05 rlauuzo

Okay, correction on my side. On web it seems enter skips the intro but the focused status is lost (so no visual confirmation what would happen) On TV the above still stands

Edit: Note that this is only the case when the skip button appears while the osd is open and then fades

Bretterteig avatar May 21 '24 16:05 Bretterteig

ConfusedPolarBear.Plugin.IntroSkipper-v2.dll.zip Could you test this? This time, focus should work. However, the issue with not pausing when nothing is selected while the skip button is visible remains.

rlauuzo avatar May 21 '24 17:05 rlauuzo

ConfusedPolarBear.Plugin.IntroSkipper-v4.zip

Or this might fix the pausing issue.

rlauuzo avatar May 21 '24 17:05 rlauuzo

ConfusedPolarBear.Plugin.IntroSkipper-v4.zip

Or this might fix the pausing issue.

Works on TV but on Web I get this:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'blur')
    at introSkipper.injectButton (configurationpage?name=skip-intro-button.js:150:37)

originates form here: const originalBlur = embyButton.blur;

Bretterteig avatar May 21 '24 18:05 Bretterteig

ConfusedPolarBear.Plugin.IntroSkipper-v6.dll.zip

Does this work for you?

rlauuzo avatar May 21 '24 19:05 rlauuzo

Button is back on web. Skip works for both TV and web. Two things I found:

  • On web the button does not have the focused visual
  • Edge case where the back button is the focused element on tv (idk... restarting the map fixed this...) I would ignore this one

Bretterteig avatar May 21 '24 20:05 Bretterteig

On web the button does not have the focused visual

This is intentional since there doesn't appear to be true "focus" on desktop browsers, only hover effects.

rlauuzo avatar May 26 '24 09:05 rlauuzo