Fix #217971 tf1info.fr

This commit is contained in:
Adam Wróblewski
2025-11-19 13:29:59 +01:00
parent 70abe3c5b8
commit 6f9037a7f4

View File

@@ -9,6 +9,15 @@
!------- JS rules ---------------------!
!--------------------------------------!
!
! https://github.com/AdguardTeam/AdguardFilters/issues/217971
! Fixes video player - required when DNS filtering is used
! TODO: use scriptlet when it's available - https://github.com/AdguardTeam/Scriptlets/issues/173
! "adjust-setInterval" is required to fix delay in video playback start
tf1info.fr#%#//scriptlet('adjust-setInterval', 'defaultConsentString', '*', '0.001')
!+ NOT_PLATFORM(ext_ff)
tf1info.fr#%#(()=>{const e=function(){};window.tC={privacy:{getOptinCategories:e,cookieData:[]},addConsentChangeListener:e,removeConsentChangeListener:e,container:{reload:e}},window.tc_events_global=e})();
!+ PLATFORM(ext_ff)
tf1info.fr#%#//scriptlet('trusted-create-element', 'head', 'script', '', '(()=>{const e=function(){};window.tC={privacy:{getOptinCategories:e,cookieData:[]},addConsentChangeListener:e,removeConsentChangeListener:e,container:{reload:e}},window.tc_events_global=e})();')
! https://github.com/AdguardTeam/AdguardFilters/issues/213146
! Fixes loading video player and delay in video playback start
! Apps cannot inject script into iframe with "about:blank" src, so a workaround is required