Greasy Fork is available in English.

Youtube HD Premium

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

这些是代码更新过的版本。 显示所有版本

  • v2024.11.12.1 2024-11-13

    [minor] Changed the emoji use in the custom UI menu that was used to indicate the expansion state for clarity purposes.

  • v2024.11.12 2024-11-11

    Added basic localization for the script's UI menu.

  • v2024.11.11.1 2024-11-11

    Updated supported YouTube domains. Apparently www.youtube-nocookie.com is used for some embedded videos so that was added to the list of matched URLs.

  • v2024.11.11 2024-11-11

    Updated script information and added localized descriptions for Japanese, Traditional Chinese, and Simplified Chinese. (version bump)

  • v2024.11.08 2024-11-08

    Updated script to handle mobile web Youtube. YouTube load events don't seems to fire on the mobile version of the website.

  • v2024.10.22 2024-10-22

    Removed the ability to set video quality to 'auto' through the script as that is redundant. Also removed any associated logic.

  • v2024.10.21.1 2024-10-21

    [minor] Very minor refactoring. No functional changes.

  • v2024.10.21 2024-10-20

    Cleaned up old code.
    Simplified redundant code that was added older GM compatibility reasons.

  • v2024.10.19.1 2024-10-18
  • v2024.10.19 2024-10-18

    Updated script to use the newer Grease Monkey API (4+).
    Added a compatilibty mode to fallback to in the case some script loaders are incompatible with newer Grease Monkey versions.

  • v2024.10.14 2024-10-13

    Updated video load handling to give better compatibility for iframe videos.
    minor bug fixes

  • v2024.10.13.1 2024-10-13

    [Critical Bug Fix] Script would fail to find the correct element to attach to under certain conditions and thus would fail to trigger.

  • v2024.10.13 2024-10-13

    Fixed an absolutely absurd number of very minor bugs. Cleaned up code a bit.

  • v2024.10.12.1 2024-10-11

    [Bug Fix] Script should not run if user settings fail to load.

  • v2024.10.12 2024-10-11

    debug options changed from a in-code flag to a persistent setting.
    Better verification logic. Changed verification logic to account for edge case where the script fails to set quality but YouTube auto quality happens to set the playback quality to one that matches what the script would have set if it was successful. This used to cause the verification to pass even though it should have failed. A consequence of this is that youtube's auto quality would be overridden. No other quality levels will be overriden, keeping the same behaviour as before.
    [m] bug fixes.

  • v2024.10.11 2024-10-10

    [CRITICAL BUG FIX] Last update broke the script and loading a youtube page with no videos (e.g. homepage) would cause the script to crash.

  • v2024.10.10 2024-10-09

    Changed the verification mechanism to only run after the video has started playing.
    Changed the verification mechanism to run everytime the video switches from pause to play. This should hopefully cover the edge case that occurs when video resumes after browser/tab sleep.
    Changed the UI menu expansion state to be persistent.

  • v2024.09.12 2024-09-11

    [minor] Changed url matching to be more flexible in case anyone is loading non-http verions of youtube.

  • v2024.09.07.1 2024-09-06
  • v2024.09.07 2024-09-06

    [minor] Changed logging behaviour to include line number. Defined homepage.

  • v2024.09.02.1 2024-09-01

    Remove call to deleted function.

  • v2024.09.02 2024-09-01

    Removed function to write quality preference to browser storage. I must have IQ below 0. YouTube already writes to localStorage so we don't need to do that ourselves with the script.

  • v2024.09.01.4 2024-08-31

    maybe?

  • v2024.09.01.3 2024-08-31

    HAIYA

  • v2024.09.01.2 2024-08-31

    Accidentally removed something in version 2024.09.01. Shouldn't be noticable on most setups regardless.

  • v2024.09.01.1 2024-08-31

    oooooooooooops.

  • v2024.09.01 2024-08-31

    Changed the script to write quality change action to browser storage. This should'nt change how the script change settings, but should hopefully allow YouTube to periodically re-check quality preference when playing a very long video, or if the video tab has been left open for extended periods of time.

  • v2024.08.29 2024-08-28

    Changed the check for Shorts to run before other checks. Disabled the verification step if quality is not being actively set.

  • v2024.08.11 2024-08-10

    Updated verification logic to be less agressive and more consistent.

  • v2024.08.10 2024-08-09

    Updated verification to run after yt-navigate-finish.

  • v2024.08.09.1 2024-08-09

    Increased retry delay from 200ms to 250ms.

  • v2024.08.09 2024-08-08

    Added a check to make sure that the selected quality is actually applied. Previously the settings would apply after a long delay if the video content somehow loads earlier than the video player itself. Definitely a weird case, but I think the bug could consistently be triggered if a setup is configured such that the machine itself is underpowered but is paired with some exceedingly fast internet.

  • v2024.07.24 2024-07-23

    Fixed compatibility with TamperMonkey caused b TamperMonkey not yet fully supporting GreaseMonkey 4 functions.

  • v2024.07.09.4 2024-07-08

    [minor] Updated for readability and minor stuff like that.

  • v2024.07.09.3 2024-07-08

    ...

  • v2024.07.09.2 2024-07-08

    Fixed the issue that moving back and forth in browser history without loading a new video would cause the script to detect the same video and skip applying the user's quality settings.

  • v2024.07.09.1 2024-07-08

    [minor] Changed metadata indents to space instead of tabs. Looked too ugly.

  • v2024.07.09 2024-07-08

    Updated GM functions to newest version. This appears to have improved the menu's reponsiveness although that was not the initial intent when making this update.

  • v2024.07.07.4 2024-07-07

    Missed a permission. Now violentmonkey should work properly.

  • v2024.07.07.3 2024-07-07

    I really need to stop forgetting to change the debug flag...

  • v2024.07.07.2 2024-07-07

    Fixed bug that caused quality to be blank if playing video lacks the full range of quality options.

  • v2024.07.07.1 2024-07-06

    **Added explicit filter to block script from trying to run on youtube shorts.**

  • v2024.07.07 2024-07-06

    Fixed script not having the correct permissions when used with VioletMonkey. Now the script should read saved settings correctly. Removed the ability to change quality preferences in embedded pages.

  • v2024.07.06.2 2024-07-05

    set debug flag to false. oops.

  • v2024.07.06.1 2024-07-05

    Changed menu text for clarity.

  • v2024.07.06 2024-07-05

    [ADDED] New UI menu to allow the user to select the quality seemlessly.

    [REMOVED] Deleted the design for users to change the target resolution through editing variables in code.

  • v2024.07.03 2024-07-03

    Fixed embedded videos not working.
    [Removed] Fetching last used YouTube setting.

  • v2024.07.02 2024-07-02

    Added an option to retrieve the last quality chosen on YouTube and use that instead.
    Reworked how settings are saved and retrieved to better account for future updates.
    Makes it so settings stored locally by YouTube are written back after video quality is changed by the script.

  • v2024.07.01.5 2024-07-01
  • v2024.07.01.4 2024-07-01

    Very slight optimization. Realized that default behaviour was being needlessly overwritten with default behaviour. Removed that.

显示脚本的所有版本