This commit is contained in:
Adam Wróblewski
2025-06-26 08:20:15 +02:00
parent 8e758d55b8
commit 8a4dd10f60

View File

@@ -2694,11 +2694,15 @@ kava.ee##.kava_ad_chilli
! https://github.com/AdguardTeam/AdguardFilters/issues/199220
akaanseutu.fi##.kaupungin-tiedotteetsidebar
akaanseutu.fi##.omamainos-products
! https://github.com/AdguardTeam/AdguardFilters/issues/208242
! https://github.com/AdguardTeam/AdguardFilters/issues/180756
! Website validates VMAP using DOMParser, so the script below adds a valid VMAP if the argument is '{}'
! and that argument is an empty object due to the prevent fetch rule
mtv.fi#%#!function(){const r={apply:(r,o,e)=>(e[0]?.includes?.("{}")&&(e[0]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<vmap:VMAP version=\"1.0\" xmlns:vmap=\"http://www.iab.net/videosuite/vmap\"><vmap:AdBreak timeOffset=\"start\" breakType=\"linear\" breakId=\"4f95e542-9da8-480e-8c2a-7ade1ffdcc3d\"><vmap:AdSource allowMultipleAds=\"true\" followRedirects=\"true\"><vmap:VASTAdData></vmap:VASTAdData></vmap:AdSource></vmap:AdBreak></vmap:VMAP>"),Reflect.apply(r,o,e))};window.DOMParser.prototype.parseFromString=new Proxy(window.DOMParser.prototype.parseFromString,r)}();
mtv.fi#%#//scriptlet('trusted-replace-fetch-response', '/(<VAST[\s\S]*?>)[\s\S]*<\/VAST>/', '$1</VAST>', 'v.fwmrm.net/ad/')
mtv.fi#%#//scriptlet('json-prune', 'playbackItem.isStitched')
mtv.fi#%#//scriptlet('m3u-prune', '/https:\/\/prism-ads-cdn\.a2d\.tv\//', '.m3u8')
||prism.a2d.tv/hls/media/*.m3u8?$hls=/https:\/\/prism-ads-cdn\.a2d\.tv\//,domain=mtv.fi
!+ PLATFORM(windows, mac, android, ext_chromium, ext_opera)
mtv.fi#%#//scriptlet('prevent-fetch', 'v.fwmrm.net')
! https://github.com/AdguardTeam/AdguardFilters/issues/206215