feat: add full-screen back-to-YouTube button (#3137)#3141
Conversation
|
thank you so much! @suryaprakash0010 |
|
lets add a clear descriptive text to locales/en/messages.json player_youtube_return_destination could also enhance our feature "auto-full screen" listed above it. |
|
hi, using history.back(); so that the page doesn't reload and removed: but we can add more buttons, such as: |
|
( and we can enhance this feature to go history.back() when closing fullscreen as well) /------------------------------------------------------------------------------ |
Problem
Users who run videos in fullscreen by default cannot easily return to YouTube.
Currently, they must exit fullscreen first to access the YouTube homepage or subscriptions.
Solution
This PR implements a new "Return to YouTube" button in the fullscreen player.
/), or/feed/subscriptions)based on user preference.
Features
✅ Added
ImprovedTube.addYouTubeReturnButton()inplayer.js✅ Added CSS in
player.cssfor styling & positioning✅ Integrated MutationObserver to detect fullscreen state changes
✅ Added setting options:
-
player_youtube_return_button(toggle on/off)-
player_youtube_return_destination(homepage / subscriptions)✅ Proper initialization in
functions.jsCloses
Closes #3137