youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Pause video bug

Open 0x0017 opened this issue 1 year ago • 2 comments

Bug: While the “Disable video playback on hover” and “Pause while I watch a 2nd video” options are enabled, a bug occurs when hovering over a video preview on the search page, the 1st video stops playing, although it doesn't happen on the main page and a channels videos page. Persist on both private and default modes. Browser: Firefox 125.0.2 | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) OS: Windows 10 .webm improvedtube.json

0x0017 avatar Apr 30 '24 06:04 0x0017

hi! @0x0017 that's (such) a (very) nice bug report! (and i might be slightly biased to say so because) after reading "search page" specifically, i have the feeling it is an easy fix and the code is just missing that detail, also since it is relatively new.

Once we are at it, can we define what else to improve or add? I guess:

  • “Pause while I watch a 2nd video” should also have a sub-option:
    • [ ] enabled by default "don't count previews on hover"

ImprovedTube avatar Apr 30 '24 11:04 ImprovedTube

Glad to help. Now that's a quick response! Yes having that option would be very handy. It's not quite clear to me how anyone could want this behavior without this option enabled by default, but it's good that you don't exclude this possibility and let the user choose. I've had one more bug while using the addon, so I'll try to make another report, but I don't think it will be easy to fix. Thanks again. I am glad to see that the addon is actively developing and there are more and more customization possibilities

0x0017 avatar May 01 '24 04:05 0x0017

two bugs here

1 search page hover, fixed by https://github.com/code-charity/youtube/pull/2383

2 reported in https://github.com/code-charity/youtube/issues/2305 ~~autoplayDisable() doesnt filter out hover previews~~ no wait, autoplayDisable() doesnt pause those because it only works either on '/watch?' or channel page. I never saw those video previews on watch/channel pages

raszpl avatar Jun 16 '24 08:06 raszpl

done

raszpl avatar Jun 16 '24 09:06 raszpl

Thanks! I'll check the fix when Firefox update add-on on their site. For now "Check for updates" can't find new version (still on 4.937)

0x0017 avatar Jun 25 '24 05:06 0x0017

~~You can try manual patch part of https://github.com/code-charity/youtube/pull/2356/files#diff-5d5fcd053d89ea6d0186c65cc18b0f9d5a3f6fc9ee3a179c9065dd78017e0667~~

nah, I tried locally and cant make modified firefox extension package work :(

raszpl avatar Jun 25 '24 06:06 raszpl

It works perfectly now!

0x0017 avatar Jun 27 '24 23:06 0x0017