Pinning quality range to 1080p and above.

This commit is contained in:
itdominator 2022-08-20 21:57:23 -05:00
parent d9c6e2ca05
commit 5cf1ab851f
3 changed files with 9 additions and 9 deletions

View File

@ -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/

View File

@ -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') {

View File

@ -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": {