是否曾渴望擁有 Premium,卻又覺得正版太過美好?別擔心,這個腳本會將那魯蛇般的普通標誌替換為 Premium 圖示,還能順便擋掉廣告,讓你和你的朋友們誤以為你比實際上更有錢。目前仍在測試階段,因此部分功能可能會不穩定或不完整,請多見諒。
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
Remove console spam. Oops.
Fix midroll ad-skips resetting playback progress.
Testing if faking visibility state could stabilize YouTube's ad serving logic in certain specific cases that would normally cause ad to be served in an infinite loop. [m] Minor bug fix.
Updated to more reliable events to listen to. Updated the ad detection system to look at YouTube player's classList. Seems to be more reliable and should support midroll ads automatically, but may be less robust against YouTube updates.
Oops. Added a weakmap to prevent event listener explosion.
Improved stability and reliability. Updated event listeners. Removed ad check locking logic. Changed how the YouTube API is fetched.
Removed console spam. No actual code change.
Removed GM API dependency. Improved YouTube homepage layout calculation.
Shorts video players got updated player id of shorts-player from YouTube. Updated script to match.
shorts-player
Fixed compatibility with ScriptCat. (Added an extra timeupdate event listener to slow down the script ad check. This seems to have fixed the infinite looping bug for ScriptCat.) Fixed YouTube Shorts comment area being hidden incorrectly.
timeupdate
Fixed the visually unappealing homepage layout caused by blocking ad renderer blocks. YouTube's aggressive UI refreshing seems to work in my favor here as it automatically restyles its own css to match my alterations, but this also makes the script more sensitive to official UI updates.
Added experimental midroll ad blocking. Unknown if this is yet 100% reliable. Improved adblocking speed and more reliability. (event listener things) Improved adblocking styling on the home page.
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址