Greasy Fork is available in English.

Youtube Video Quality

Disabling auto video quality with toast notification, original script -> https://greasyfork.org/en/users/226529

< Spätná väzba na Youtube Video Quality

Otázka/komentár

§
Pridaný: 16.07.2019

please tell me how to set an backup video quality

i set up the script to Quality_large aka 480p, however sometimes in older videos or LQ videos where even 480p isn't it available , the script keeps trying to set quality to large and the notification keeps going. i tried "if (QUALITY_LARGE == true) {var KUALITAS = QUALITY_LARGE} else {KUALITAS = QUALITY_MEDIUM} but not working .

TanukiAutor
§
Pridaný: 14.09.2019

sorry for very late.... i have updated the script that fix the notification keeps going.. if you want to make backup video quality you can't use KUALITAS variable because is not from playback, use document.getElementById("movie_player").getAvailableQualityLevels() instead to directly get all available video quality (this will give you a array like ['small','medium','auto']) so if (document.getElementById("movie_player").getAvailableQualityLevels().indexOf(KUALITAS) > -1) { //the video quality is available, use it! }else{ //target quality not available, make backup video quality setting here, or leave blank to auto set video to highest available quality }

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.