Update #203236 youtube.com

Move rule to Base filter
This commit is contained in:
Adam Wróblewski
2026-10-12 17:24:04 +02:00
parent 4abc38e712
commit 2e1b800112
2 changed files with 2 additions and 3 deletions

View File

@@ -1038,6 +1038,8 @@ www.youtube.com#%#//scriptlet('json-prune', 'ytInitialData.contents.twoColumnBro
www.youtube.com#%#(()=>{let t=!1;const i={apply:(i,n,a)=>{try{!t&&window.ytInitialData&&(window.ytInitialData=JSON.parse(JSON.stringify(window.ytInitialData)),t=!0)}catch(t){}return Reflect.apply(i,n,a)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,i)})();
! https://github.com/AdguardTeam/AdguardFilters/issues/203236#issuecomment-3911413190
www.youtube.com#%#//scriptlet('set-constant', 'ytcfg.data_.EXPERIMENT_FLAGS.web_streaming_watch', 'false')
! Fixes muting videos when `web_streaming_watch` is set to `true`
www.youtube.com#%#//scriptlet('json-prune', '$.playerResponse[?(@.cards&&!@.playabilityStatus.miniplayer)].playerConfig.audioConfig.muteOnStart')
! https://github.com/AdguardTeam/AdguardFilters/issues/203236#issuecomment-3902013966
! https://github.com/AdguardTeam/AdguardFilters/issues/239516#issuecomment-5747844181
! Viewer count and other elements are not updating automatically when rule below is applied

View File

@@ -2,9 +2,6 @@
! Rules that are restricted to one or more domains.
! This section contain any type of rule grouped by domain.
!
! Fixes muting videos when `web_streaming_watch` is set to `true`
! TODO: Move to Base filter after few days
www.youtube.com#%#//scriptlet('json-prune', '$.playerResponse[?(@.cards&&!@.playabilityStatus.miniplayer)].playerConfig.audioConfig.muteOnStart')
! remove anti-adb
! !#if (!adguard_ext_firefox)
! www.youtube.com#%#(()=>{const wrapper=(target,thisArg,args)=>{let result=Reflect.apply(target,thisArg,args);try{const decoded=atob(result);if(decoded.includes('bkaEnforcementMessage')){const modifiedContent=decoded.replace(/\n.\n.auxiliaryUi\.messageRenderers\.bkaEnforcementMessageViewModel\.displayType.\dENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_[A-Z]+\n.\n.auxiliaryUi\.messageRenderers\.bkaEnforcementMessageViewModel\.isVisible.{2}(?:tru|fals)e/,'');const encodeToBase64=btoa(modifiedContent);return encodeToBase64}}catch(e){} return result};const handler={apply:wrapper};window.Array.prototype.join=new Proxy(window.Array.prototype.join,handler)})();