Fix #164615 amazon.com

This commit is contained in:
Adam Wróblewski
2023-10-26 11:02:14 +02:00
parent 59ce4c6a53
commit 483fd8a91a
2 changed files with 6 additions and 1 deletions

View File

@@ -121,8 +121,11 @@ mangakita.net,westmanga.info#%#//scriptlet("set-constant", "puShown1", "true")
! or xml-prune if this - https://github.com/AdguardTeam/Scriptlets/issues/325 will be fixed
! amazon.co.jp,amazon.com#%#//scriptlet('trusted-replace-xhr-response', '/<Period.*?value="Ad".*?<\/Period>/', '', '.mpd')
! amazon.co.jp,amazon.com#%#//scriptlet('trusted-replace-xhr-response', '/start="[0-9A-Z]+">/', '>', '.mpd')
amazon.co.jp,amazon.com#%#//scriptlet('xml-prune', 'Period:\has([value="Ad"])', '', '.mpd')
amazon.co.jp,amazon.com#%#//scriptlet("json-prune", "cuepointPlaylist")
! https://github.com/AdguardTeam/AdguardFilters/issues/164615
! Video is broken in Firefox, because :has() is not supported, xpath can be used when will be added
!+ NOT_PLATFORM(windows, mac, android, ext_ff, ext_ublock)
amazon.co.jp,amazon.com#%#//scriptlet('xml-prune', 'Period:\has([value="Ad"])', '', '.mpd')
!
! go.oclasrv.com clickunder/ads ('zfgloaded')
! '$$script[tag-content="zfgloaded"][min-length="30000"][max-length="80000"]'

View File

@@ -7,8 +7,10 @@
!
! https://github.com/AdguardTeam/AdguardFilters/issues/160305
||gplinks.in/track/js/main.js$replace=/(var isOverGoogleAd = false;)([\s\S]*)(sendPostback\(\n[\s\S]*?\))/\$1\$3;\$2\$3/
! https://github.com/AdguardTeam/AdguardFilters/issues/164615
! https://github.com/AdguardTeam/AdguardFilters/issues/150836
! https://github.com/AdguardTeam/AdguardFilters/issues/148543
.mpd$replace=/<Period.{0\,400}value="Ad"[\s\S]*?<\/Period>//,xmlhttprequest,domain=amazon.com|amazon.co.jp
.mpd$replace=/start="[0-9A-Z]+?">/>/,xmlhttprequest,domain=amazon.com|amazon.co.jp
! https://github.com/AdguardTeam/AdguardFilters/issues/152366
||pluto.tv/*/dash/*/*.mpd$replace=/<Period.{1\,100}?><BaseURL>.{1\,100}\.plutotv\.net\/.{1\,50}_ad\/.*?<\/BaseURL>[\s\S]*?<\/Period>//