From f4dd6927c9516cb1d7b9d58b99e9ccccce9be801 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Thu, 18 May 2023 20:40:06 +0200 Subject: [PATCH] Update player.js fix for "After installation, h.264 needs to be clicked twice before it reacts and the modal appears" https://github.com/code-charity/youtube/pull/1681 --- menu/skeleton-parts/player.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/menu/skeleton-parts/player.js b/menu/skeleton-parts/player.js index 76e5684b0..01ab228d6 100644 --- a/menu/skeleton-parts/player.js +++ b/menu/skeleton-parts/player.js @@ -89,7 +89,6 @@ extension.skeleton.main.layers.section.player.on.click = { component: 'switch', text: 'autoPip', id: 'player_autoPip', - value: false, on: { click: function () { if (this.dataset.value === 'true' && satus.storage.get('player_autopause_when_switching_tabs')) { @@ -778,6 +777,7 @@ extension.skeleton.main.layers.section.player.on.click = { block_vp9: { component: 'switch', text: 'blockVp9', + value: false, custom: true, on: { click: function () { @@ -809,6 +809,7 @@ extension.skeleton.main.layers.section.player.on.click = { block_h264: { component: 'switch', text: 'blockH264', + value: false, custom: true, on: { click: function () { @@ -875,6 +876,7 @@ extension.skeleton.main.layers.section.player.on.click = { component: 'switch', text: 'codecH264', storage: 'player_h264', + value: false, custom: true, on: { click: function () { @@ -962,7 +964,6 @@ extension.skeleton.main.layers.section.player.on.click = { sdr: { component: 'switch', text: 'forceSDR', - value: false, storage: 'player_SDR' } },