From ff0a125a13ff166b73aadecf66174fe1398a7f15 Mon Sep 17 00:00:00 2001 From: jsong89 Date: Tue, 19 Oct 2021 02:25:17 -0400 Subject: [PATCH] Added 144p opt in shortcut quality about issue #1073 --- popup.js | 7 +++++++ youtube-scripts.js | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/popup.js b/popup.js index c3b016d88..4b4ecb678 100644 --- a/popup.js +++ b/popup.js @@ -2971,6 +2971,9 @@ var skeleton = { }, { text: 'fitToWindow', value: 'fit_to_window' + }, { + text: '144p', + value: '144p' }, { text: '240p', value: '240p' @@ -5132,6 +5135,10 @@ var skeleton = { component: 'shortcut', text: 'auto' }, + shortcut_144p: { + component: 'shortcut', + text: '144p' + }, shortcut_240p: { component: 'shortcut', text: '240p' diff --git a/youtube-scripts.js b/youtube-scripts.js index 07ad52636..e599fb6fe 100644 --- a/youtube-scripts.js +++ b/youtube-scripts.js @@ -3095,6 +3095,7 @@ ImprovedTube.shortcuts = function() { if (same_keys === true) { if ([ 'shortcutAuto', + 'shortcut144p', 'shortcut240p', 'shortcut360p', 'shortcut480p', @@ -3225,6 +3226,10 @@ ImprovedTube.shortcutQuality = function (key) { if (this.elements.player) { var value = key.replace('shortcut', '').toLowerCase(); + if (value === '144p') { + value = 'tiny'; + } + if (value === '240p') { value = 'small'; }