From 2454cd9a39180227ea012917c14cc1e3f66d6053 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 11 Feb 2020 12:29:19 -0500 Subject: [PATCH] Fixed regex to support Firefox. --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 6e51aab3..8ebc3121 100644 --- a/src/content.ts +++ b/src/content.ts @@ -446,7 +446,7 @@ function sponsorsLookup(id: string, channelIDPromise?) { //use the invidious api to get the time published sendRequestToCustomServer('GET', "https://www.youtube.com/get_video_info?video_id=" + id, function(xmlhttp, error) { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - let decodedData = decodeURIComponent(xmlhttp.responseText).match(/(?<=player_response=)[^&]*/)[0]; + let decodedData = decodeURIComponent(xmlhttp.responseText).match(/player_response=([^&]*)/)[1]; if (decodedData === undefined) { console.error("[SB] Failed at getting video upload date info from YouTube.");