Skip to content

Commit

Permalink
Merge pull request #1075 from juuuuuuun/issue-1073
Browse files Browse the repository at this point in the history
Added 144p opt in shortcut quality about issue #1073
  • Loading branch information
Victor Savinov committed Oct 21, 2021
2 parents 9c1bdc3 + ff0a125 commit 4065cbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions popup.js
Expand Up @@ -2971,6 +2971,9 @@ var skeleton = {
}, {
text: 'fitToWindow',
value: 'fit_to_window'
}, {
text: '144p',
value: '144p'
}, {
text: '240p',
value: '240p'
Expand Down Expand Up @@ -5132,6 +5135,10 @@ var skeleton = {
component: 'shortcut',
text: 'auto'
},
shortcut_144p: {
component: 'shortcut',
text: '144p'
},
shortcut_240p: {
component: 'shortcut',
text: '240p'
Expand Down
5 changes: 5 additions & 0 deletions youtube-scripts.js
Expand Up @@ -3095,6 +3095,7 @@ ImprovedTube.shortcuts = function() {
if (same_keys === true) {
if ([
'shortcutAuto',
'shortcut144p',
'shortcut240p',
'shortcut360p',
'shortcut480p',
Expand Down Expand Up @@ -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';
}
Expand Down

0 comments on commit 4065cbf

Please sign in to comment.