From 5cf1ab851f078541a38ae81817ed41deb70e6aab Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sat, 20 Aug 2022 21:57:23 -0500 Subject: [PATCH] Pinning quality range to 1080p and above. --- README.md | 4 ++-- src/inject.js | 12 ++++++------ src/manifest.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ff9cecf..2ebcf85 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ Better YouTube + works to improve the YouTube experience by providing quick acce * It shows volume level as you scroll. * It lets Unix, Linux, and MacOS systems have the ability to download the video using native app calls. -# Version: 1.5.9 -* Updated quality detection range +# Version: 1.6.0 +* Pinning quality range to 1080p and above. # Download https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/ diff --git a/src/inject.js b/src/inject.js index 3ceed3b..b6aa98f 100644 --- a/src/inject.js +++ b/src/inject.js @@ -5,8 +5,8 @@ const prefs = { hd: true, once: false, - higher: false, - quality: ["hd1080", 'hd720', 'auto'], + higher: true, + quality: ["hd1080"], log: false, highFramerate: true }; @@ -47,10 +47,10 @@ script.textContent = ` // ['hd2160', 'hd1440', 'hd1080', 'hd720', 'large', 'medium', 'small', 'tiny', 'auto'] const qualities = player.getAvailableQualityLevels(); const q = player.getPlaybackQuality(); - if ((q.startsWith('h') && prefs.quality.startsWith('h')) && prefs.hd === 'true') { - console.log("Quality matches requested resolution..."); - return; - } + // if ((q.startsWith('h') && prefs.quality.startsWith('h')) && prefs.hd === 'true') { + // console.log("Quality matches requested resolution..."); + // return; + // } const compare = (q1, q2) => { if (q2 === 'auto') { diff --git a/src/manifest.json b/src/manifest.json index cfb1d09..a7b3719 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Better Youtube +", - "version": "1.5.9", + "version": "1.6.0", "description": "Enhancements for Youtube to have a better experience.", "applications": {