Pinning quality range to 1080p and above.
This commit is contained in:
parent
d9c6e2ca05
commit
5cf1ab851f
|
@ -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/
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue