Update #228480 m.youtube.com

Move rules to Base filter
This commit is contained in:
Adam Wróblewski
2026-04-22 12:23:30 +02:00
parent 5d615201ba
commit 4eb20b59e0
2 changed files with 3 additions and 5 deletions

View File

@@ -799,6 +799,9 @@ www.youtube.com#%#(()=>{const e={apply:(e,t,o)=>{const n=Reflect.apply(e,t,o);if
www.youtube.com#%#//scriptlet('set-constant', 'ytcfg.data_.EXPERIMENT_FLAGS.web_streaming_watch', 'false')
! https://github.com/AdguardTeam/AdguardFilters/issues/203236#issuecomment-3902013966
www.youtube.com#%#//scriptlet('prevent-setTimeout', '(),a,b)', '5000')
! Fix fake buffering on mobile website
m.youtube.com#%#//scriptlet('json-prune', 'playerResponse.messages.[].youThereRenderer')
m.youtube.com#%#(()=>{const t={apply:(t,e,n)=>{if(location.href.includes("/shorts/")||location.href.includes("youtube.com/tv")||location.href.includes("youtube.com/embed/"))return Reflect.apply(t,e,n);try{const a=n[0];if(!a?.context?.client)return Reflect.apply(t,e,n);const o=String(Date.now());a.playbackContext&&void 0===a.playbackContext.adPlaybackContext&&(a.playbackContext.contentPlaybackContext.lactMilliseconds=o),a.playerRequest&&void 0===a.playerRequest.playbackContext?.adPlaybackContext&&(a.playerRequest.playbackContext.contentPlaybackContext.lactMilliseconds=o),n[0]=a}catch(t){}return Reflect.apply(t,e,n)}};window.JSON.stringify=new Proxy(window.JSON.stringify,t)})();
! This one may be unnecessary:
||youtube.com/get_video_info?*=adunit&$important
! https://github.com/AdguardTeam/AdguardFilters/issues/81610