diff --git a/video-swap-new/video-swap-new-ublock-origin.js b/video-swap-new/video-swap-new-ublock-origin.js index 85531f0..371a5f1 100644 --- a/video-swap-new/video-swap-new-ublock-origin.js +++ b/video-swap-new/video-swap-new-ublock-origin.js @@ -178,7 +178,7 @@ twitch-videoad.js text/javascript postMessage({key:'UboHideAdBanner'}); } if (haveAdTags && streamInfo.BackupEncodings != null) { - var streamM3u8Url = streamInfo.BackupEncodings.match(/^https:.*\.m3u8$/m)[0]; + var streamM3u8Url = streamInfo.BackupEncodings.match(/^https:.*\.m3u8.*$/m)[0]; var streamM3u8Response = await realFetch(streamM3u8Url); if (streamM3u8Response.status == 200) { textStr = await streamM3u8Response.text(); diff --git a/video-swap-new/video-swap-new.user.js b/video-swap-new/video-swap-new.user.js index 502a0ad..e9c2bf7 100644 --- a/video-swap-new/video-swap-new.user.js +++ b/video-swap-new/video-swap-new.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name TwitchAdSolutions (video-swap-new) // @namespace https://github.com/pixeltris/TwitchAdSolutions -// @version 1.25 +// @version 1.26 // @updateURL https://github.com/pixeltris/TwitchAdSolutions/raw/master/video-swap-new/video-swap-new.user.js // @downloadURL https://github.com/pixeltris/TwitchAdSolutions/raw/master/video-swap-new/video-swap-new.user.js // @description Multiple solutions for blocking Twitch ads (video-swap-new) @@ -190,7 +190,7 @@ postMessage({key:'UboHideAdBanner'}); } if (haveAdTags && streamInfo.BackupEncodings != null) { - var streamM3u8Url = streamInfo.BackupEncodings.match(/^https:.*\.m3u8$/m)[0]; + var streamM3u8Url = streamInfo.BackupEncodings.match(/^https:.*\.m3u8.*$/m)[0]; var streamM3u8Response = await realFetch(streamM3u8Url); if (streamM3u8Response.status == 200) { textStr = await streamM3u8Response.text();