Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 2024.06.25
- // Fixed auto theater mode.🥳
- // Removed HFR functions.
- // Defaults to aways settings resolution early.
- // Added support for 'auto' resolution since YouTube officially returns the value now.
- // Simplified resolution calculation.
- // Function will also find the closet resolution not exceeding the target if the target resolution cannot be found.
- // Removed calls to obsolete functions. (deprecated by YouTube)
- // Removed options to manually switch between button and API mode. Will now default to API mode then fallback to button emulation when API calls aren't supported.
- // Removed code that stops calculation of resolution when playing the same video back to which. Fixing the edge case of video having different resolution between playback, often caused by a video being too new.
- // Removed fetching resolution data with video ID. Pretty sure YouTube have changed their loading order since this script was created so this is no longer necessary.
- // Removed flushBuffer as it relied on loading video data with video ID.
- // Removed enableErrorScreenWorkaround.
- // Removed ability to set custom size video players. YouTube no longer provides direct API calls to resize the player.
- // Now 9 different divs are stsacked on top of each other for the player, there are just too many ways YouTube can accidentally break a CSS based approach.
- // Besides, resizing no longer makes much sense with the new AI, and assuming they will adopt the beta UI in the future, finding a solution to this problem seems like a huge waste of time and effort.
- // Target resolution now defaults to 4k (hd2160) [added 2024.06.15]
- // [NOTE*] There was a massive amount of change this update so please do give feedback if it is somehow catastrophically backwards uncompatible.
- // 2024.06.15
- // Fix issue that disabled the premium quality option on premium accounts.
- // Fix conflict between api quality selector and button click fallback.
- // Fix bug that caused the script to not recognize the quality selector button in the Youtube player UI when using button click fallback.
- // Fix bug that caused the script to fail to fetch video quality data when switching between videos using button click fallback when not reloading.
- // 2024.01.17
- // Fix issue with user script managers that don't define GM
- // 2024.01.14
- // Partially fix auto theater mode again after more youtube changes
- // Note that if you want to turn theater mode back off after using auto theater you have to click the button a few times. This is a known issue that hasn't been fixed yet.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement