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

Added 144p opt in shortcut quality about issue #1073 #1075

Merged
1 commit merged into from Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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