Re:Building Firefox's Picture-in-Picture Support
by aasasd on Sunday February 09, 2020 @08:56PM
(#22285775)
Suggested videos can be ‘disabled’ with rules in uBlock Origin or other extensions. I'm not at the desktop so you'll have to search the web for the exact element classes/ids.
Re:Building Firefox's Picture-in-Picture Support
by aasasd on Monday February 10, 2020 @12:49AM
(#22286702)
Here's the class, stick this in the ‘my filters’ of uBO:
youtube.com##.ytp-pause-overlay
Re:Building Firefox's Picture-in-Picture Support
by tialaramex on Sunday February 09, 2020 @10:17PM
(#22286172)
Are you sure Youtube's keyboard shortcut for pause is "Space" for you? For me it's K, with J being jump backward a few seconds and L being jump forward a few seconds. I don't know if the media buttons (Pause, Rewind, Fast Forward) would also work as this keyboard pre-dates Windows 95 so it doesn't have anything like that. [ Yes I should buy a new keyboard... ]
Re:Building Firefox's Picture-in-Picture Support
by MayeulC on Monday February 10, 2020 @06:30AM
(#22288203)
Thank you, I hadn't realized there were separate keyboard shortcuts, even though the one for pause is indicated on hover.
Even though space conflicts with toggling the currently selected item (tab/space), it is the more common shortcut in video player applications, and is quite easy to reach. I also think that mouse clicking an element shouldn't change the keyboard selection to that one.
Not sure how those media control are interpreted, I think I usually set them to control the MPRIS interface, so they would at the very least work on KDE with plasma browser integration.
Written with my SUN type-7 keyboard
Re:Building Firefox's Picture-in-Picture Support
by ygra on Monday February 10, 2020 @08:38AM
(#22288953)
Space works as long as the video player has keyboard focus. Otherwise the default browser behavior takes over which is the same as Page Down.
Re:Building Firefox's Picture-in-Picture Support
by retox on Sunday February 09, 2020 @11:03PM
(#22286349)
You can use stylish to remove the suggested popup div, if there's any interest I will put up a gist somewhere. I also wrote some custom CSS to center the controls rather than have them spread across my ultra-wide monitor. Huge quality of life improvement if you watch a lot of yt.
Re:Building Firefox's Picture-in-Picture Support
by retox on Monday February 10, 2020 @01:07AM
(#22286771)
Here are my stylesheet changes; https://pastebin.com/mRgPWKTd
When watching a video, I often pause (space) to have a better look at what's on the screen [-> rewind (left)] -> play (space)
I absolutely loathe youtube's "suggested videos" that pop in my face when I try to focus on a specific frame. I never used that feature, it's just a way to shove ads in my face. Moreover, if I close it, the open/close button is now focused, and space brings it up again instead of resuming the video. This is tedious.
I thought that PiP would solve that, but it looks like I cannot pause the video with space if I haven't clicked the pause button already, and I can't seek.
I often just revert to pasting the URL for mpv to open it after getting frustrated and losing my time with both other methods.