自動切換到你預先設定的畫質。會優先使用Premium位元率。
這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。
Update to YouTube Helper API 0.5.7.
Updated to YouTube Helper API 0.5.4.
Updated to YouTube Helper API 0.5.3.
Updated to YouTube Helper API 0.4.6.
Updated to YouTube Helper API 0.4.5
Updated to helper api v0.4.3 Updated script's saving and loading to use both GM and localStorage in parallel. This should maximize both function and compatibility. Settings should now persist even without cookies as long as GM API is available.
Updated script to use a helper API for common functions.
Added the resolution selection UI to the mobile site (m.youtube.com). Oops.
Fixed a minor bugs that caused preview players on the homepage and the search result page to be ignored. This update should be functionally identical to v2025.09.14 unless YouTube provides resolution API data for previews and I'm not aware of it.
Removed the @inject-into auto metadata tag as Tampermonkey cannot take that data and would cause the script to load incorrectly fail to set resolution.
@inject-into auto
[m] Fix typo.
[m] Minor bug fix.
Removed all Greasemonkey API dependencies. Should improve compatibility with script managers, especially on Safari. Added a native UI, replacing the old GM menu.
This update should allow basically all Safari script managers to load this script unlike before, as many script managers seem to not have Greasemonkey support in Safari for unknown reasons.
Shorts video players got updated player id of shorts-player from YouTube. Updated script to match.
shorts-player
Fix script menu compatibility with certain script managers. Increasing compatibility with ScriptCat as Chrome fully deprecated MV2 in v139. ScriptCat current does not support dynamic menus.
Removed debug mode. Refactored code. (No functional change.)
Added a function to automatically sync setting across tabs without needing a reload.
fix bug in quality selection menu
Revert. Implementation was too unreliable.
Fixed compatibility with nocookie version of embeds.
m remove extra logging.
Removed the OPTIMIZED AUTO option. Seems like while YouTube's auto setting can do Premium Bitrate now, the resolution negotiation is still too slow and too passive.
Changed Tampermonkey verion warning to once per lifetime. (was once per update)
Updated debug logging. Updated error handling.
Fix quality not being set for certain embedded videos.
Explanation: It seems that when an iframe is configured not to autoplay, video quality details are not available when the script first detects the video player. However, the player will still accept quality setting requests in this state. It will automatically negotiate the closest available quality to the user’s preference set by the script. The only caveat is that the resolution section of the YouTube UI will appear blank until an actual available quality is selected. Fortunately, this is easily worked around by setting the quality a second time after playback begins (usually on user interaction). This corrects the UI before the user has a chance to open the settings menu. In most cases, the initially selected resolution will already match the desired setting, so the second quality set does not trigger buffering—making this workaround effectively invisible to the user.
Made quality switching behaviour in iframes more similar to native youtube.com. Minor optimizations.
Update setting loading behaviour. AdGuard for Desktop has been reported to be compatible but not able to edit the setting through the custom UI. The fix is to save the default settings to storage when none has been store. (Any extra keys stored are removed.)
Updated the setting loading function to write the default settings to storage if nothing is stored.
Changed the script to only display the Tampermonkey outdated warning once per update instead of on every script load.
Updated menu to be static for current and older Tampermonkey versions as it seems Tampermonkey only added dynamic menu items in verion 5.4.6224. Version 5.4.6224 is still in beta as of this update.
Added the 'Optimzed Auto' option. Uses the YouTube's auto option but makes sure Premium bitrate is selected all the time as YouTube sometimes fails to detect Premium availability.
Fixed an issue which caused videos to load multiple times when Premium bitrate is available and is the page loaded.
Explicitly differentiate the handling for mobile and desktop sites.
Removed the deprecated 5K resolution option.
Fixed an issue where the first video loaded would play for a split second before reloading to the correct quality if premium bitrate is available and chosen.
Fixed an edge case where the page could reload the video player without triggering an update event.
Revert to update v2025.01.07
Fixed an issue where the first video loaded would have the quality set too late resulting in videos loading twice. When refreshing a video, it seems that no events are fired early enough to prevent this issue. Counter-intuitively, however, the YouTube API seems to be always ready right after full re-loading. Thus the script is changed to immediately try to change resolution once on load.
Added a miniscule amount of error handling.
顯示所有腳本版本
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址