Greasy Fork

来自缓存

Greasy Fork is available in English.

YouTube HD Premium

自动切换到你预先设定的画質。会优先使用Premium比特率。

< 脚本 YouTube HD Premium 的反馈

评价:好评 - 脚本运行良好

§
发布于:2024-07-03
编辑于:2024-07-03

Nice script. It works well except videos are always playing in 4K even though I changed storage value to,

{
"targetRes": "hd1080"
}

I'm using it in Violentmonkey in Brave browser with the latest version of the script released 1 Hour ago at the time of me writing this. Is it a bug or am I doing something wrong?

§
发布于:2024-07-03

Hey, the value of "overwriteStoredSettings" is set to false by default so I don't wipe your saved settings after each update. Changing that to true should allow you to modify your settings from code again. It's really an unnatural leftover artifact from adisib that I might remedy soon.

§
发布于:2024-07-05

The artifact has been remedied. An UI has been added for quality selection that bypasses the need to edit the script directly.

§
发布于:2025-02-20
编辑于:2025-02-20

Hello again, after your previous changes I never had an issue with your script. But currently I'm running the script in AdGuard for desktop and the way to store userscript settings seems to be a bit different in this product.
This is how it looks in AdGuard for Desktop's storage option by default once I visit YouTube.

{"scriptInfo":"[O;{\"version\":null}"}

If I copy-paste this Violentmonkey settings into AdGuard,

{

"scriptInfo": {

"version": "2025.02.11"

},

"settings": {

"targetResolution": "hd1080",

"expandMenu": false,

"debug": false

}

}


Then I'm getting this error in AdGuard saying,
"cannot deserialized edited GM properties."

What can I do about this? Can you please help?

§
发布于:2025-02-21

I tried to look into this but could neither find a way to run nor to debug the script through adguard. What is your current browser and system that you use? If I can't replicate your issue then I unfortunately cannot provide compatibility with AdGuard as I can't get AdGuard to recognize its own browser extension.

§
发布于:2025-02-21

Alright I've pushed an updated that may or may not solve your problem. Try that first.

§
发布于:2025-02-21

Alright I've pushed an updated that may or may not solve your problem. Try that first.

Thank you. Now it's working. Settings are now stored properly, and I am able to change the resolution to my preferred 1080p.
"AdGuard for Desktop" is a separate product that doesn't require extension to function. It's a paid product but they provide a 15 day trial period.
This is how it looks in AdGuard for Desktop.
https://postimg.cc/YhtkGSk7
In the userscript's Compatibility Status section here in greasyfork, you may add AdGuard for Desktop as a program that is compatible with your script. You could also check it out in a VM to see if there's any other compatibility issue that I might have missed.

§
发布于:2025-02-21

I am aware what "AdGuard for Desktop" but it wouldn't execute any scripts for me so I thought to try it with their assistant extension that they recommend. Never ended up working. Regardless, thank you for reporting the working status.

§
发布于:2025-09-04

The new update (2025.09.05) probably fixes this issue completely. If you are able to give feedback on this it would be great.

§
发布于:2025-09-12

Hi! It seems the last update actually broke it for AdGuard for Windows. Since your previous fix in February, I never had any issues with the extension again but now it's loading 4K video again by default even though my setting is 1080p. This is how the setting look like, {"settings":"[O;{\"targetResolution\":\"hd1080\",\"expandMenu\":false,\"debug\":false}"}

§
发布于:2025-09-13
编辑于:2025-09-13

The new version moved the script's settings menu into YouTube's existing quality selection menu. It no longer saves anything into AdGuard so settings written there would no longer have any effect.

The new update uses the default 4k value as it no longer reads from your previous saved stuff from the older versions. Can you try to see if you can find the new menu and see if that works for you?

§
发布于:2025-09-15

Ok, I see. Yeah, I see the menu and it seems to be working as expected.

§
发布于:2025-09-15

Nice to hear that it's working. Thanks for checking.

§
发布于:2025-09-26

Hello again! On negative thing about the new approach is that it seems to be cookie dependent. In browser's private/incognito window it doesn't respect my quality settings. It plays videos in the default 4K.

§
发布于:2025-09-27

I have noticed the same thing, but this new approach was taken for compatibility reasons. I'll look into whether a hybrid approach is possible without breaking compatibility. My initial guess is leaning pessimistic however.

§
发布于:2025-09-27

I think I got the hybrid approach to work. Try the new (v2025.09.27) version, it should hopefully solve you issue.

§
发布于:2025-09-27

Thanks for the update. The hybrid approach now works perfectly.

发布留言

登录以发布留言。