Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut for toggle player controls not working... #1129

Closed
clicky6 opened this issue Nov 27, 2021 · 11 comments
Closed

Shortcut for toggle player controls not working... #1129

clicky6 opened this issue Nov 27, 2021 · 11 comments
Labels
Bug Bug or required update after YouTube changes Open! Not to forget. Unfinished (or waiting for a requirement) (unless combined with label: riddle) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥

Comments

@clicky6
Copy link

clicky6 commented Nov 27, 2021

Shortcut for toggle player controls not working.
Version-3.791
JSON file link - https://wormhole.app/a9ApP#XyS-WN5M2w4j27fm0iJ46A

@clicky6 clicky6 added Bug Bug or required update after YouTube changes help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) labels Nov 27, 2021
@ghost
Copy link

ghost commented Nov 27, 2021

Settings -> Backup & reset -> Export settings

@clicky6
Copy link
Author

clicky6 commented Nov 27, 2021

Settings -> Backup & reset -> Export settings

@victor-savinov
Then...

@ghost
Copy link

ghost commented Nov 27, 2021

@clicky6 try to attach it here

@clicky6
Copy link
Author

clicky6 commented Nov 28, 2021

@clicky6 try to attach it here

@victor-savinov
GitHub wouldn't upload a .json file, So here is a link to the file.
https://wormhole.app/a9ApP#XyS-WN5M2w4j27fm0iJ46A

@clicky6
Copy link
Author

clicky6 commented Nov 29, 2021

@victor-savinov
Did you check what's wrong?

@ghost
Copy link

ghost commented Nov 29, 2021

@clicky6 did not find a bug

@clicky6
Copy link
Author

clicky6 commented Dec 1, 2021

Looks like there was some problem with my settings only.
I reinstalled the extension, applied settings 1by1 and everything got fixed.

@clicky6 clicky6 closed this as completed Dec 1, 2021
@ImprovedTube ImprovedTube removed the help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) label Dec 28, 2021
@ImprovedTube ImprovedTube added the Open! Not to forget. Unfinished (or waiting for a requirement) (unless combined with label: riddle) label Mar 20, 2023
@ImprovedTube ImprovedTube reopened this Mar 20, 2023
@ImprovedTube ImprovedTube added the up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ label Apr 29, 2023
@clicky6 clicky6 closed this as completed Dec 8, 2023
@Anoaxx
Copy link

Anoaxx commented Dec 9, 2023

Problem is its the problem with extension sometime stops changing options if u are change many of them on short time, especially shortcut, and secondly, if u focused on search bar in mean time, shortcuts somehow stops working...

@clicky6 clicky6 reopened this Dec 9, 2023
@raszpl
Copy link
Contributor

raszpl commented Jun 17, 2024

@clicky6 did it break again?

@clicky6
Copy link
Author

clicky6 commented Jun 22, 2024

@clicky6 did it break again?

Current Behavior:
When I hide the player controls using the set shortcut key, they reappear when I pause the video.

Expected Behavior:
The player controls should remain hidden until the shortcut key is pressed again.

@raszpl
Copy link
Contributor

raszpl commented Jun 22, 2024

aaah, so the shortcut is technically working :=] , but the logic above fails. The pausing thing is a very important clue.

ImprovedTube.playerOnPause = function (event) {

ImprovedTube.playerControls = function () {

player_hide_controls: {
component: "select",
text: "hidePlayerControlsBar",
options: [{
text: "off",
value: "off",
default: "true"
}, {
text: "whenPaused",
value: "when_paused"
}, {
text: "always",
value: "always"
}]
},

ImprovedTube.shortcutToggleControls = function () {
if (this.elements.player) {
this.storage.player_hide_controls = !this.storage.player_hide_controls;

ok so you cant actually just Toggle player controls because:

  • our player_hide_controls has three states :)
  • more importantly YT doesnt support forcing controls ON on playing video, instead it will show controls only with mouse cursor hovering over video

remedy is two step:

  1. fixing shortcutToggleControls, done Update shortcuts.js fix shortcutToggleControls #1129 #2405
  2. renaming "toggleControls"
    "toggleControls": {
    "message": "Toggle controls"

    to be consistent with
    "hidePlayerControlsBar": {
    "message": "Hide player controls bar"
    and say
    "Toggle player controls Hiding"

ill leave point 2 to someone else :)

ImprovedTube added a commit that referenced this issue Jun 23, 2024
Update shortcuts.js fix shortcutToggleControls #1129
@raszpl raszpl closed this as completed Jun 23, 2024
ImprovedTube added a commit that referenced this issue Jun 26, 2024
Update messages.json "Toggle player controls Hiding" #1129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug or required update after YouTube changes Open! Not to forget. Unfinished (or waiting for a requirement) (unless combined with label: riddle) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥
Projects
None yet
Development

No branches or pull requests

4 participants