From ddd31f3567128ca97be5cb12ba804be6c162087e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 14 Nov 2021 13:55:34 -0500 Subject: [PATCH] Update twitch-videoad.js scriptlet Related commit: - https://github.com/pixeltris/TwitchAdSolutions/commit/aad8946dab2bba951bb81c7730292fe595a7a6ae Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/1789#issuecomment-962440694 --- assets/resources/scriptlets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index dcb375f02..acbec1c4a 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -1562,6 +1562,9 @@ /// twitch-videoad.js // https://github.com/uBlockOrigin/uAssets/issues/5184 // https://github.com/pixeltris/TwitchAdSolutions/commit/6be4c5313035 +// https://github.com/pixeltris/TwitchAdSolutions/commit/3d2883ea9e3a +// https://github.com/pixeltris/TwitchAdSolutions/commit/7233b5fd2284 +// https://github.com/pixeltris/TwitchAdSolutions/commit/aad8946dab2b (function() { if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } window.fetch = new Proxy(window.fetch, { @@ -1573,7 +1576,8 @@ init instanceof Object && init.headers instanceof Object && typeof init.body === 'string' && - init.body.includes('PlaybackAccessToken') + init.body.includes('PlaybackAccessToken') && + init.body.includes('"isVod":true') === false ) { const { headers } = init; if ( typeof headers['Authorization'] === 'string' ) {