diff options
author | Ajay Ramachandran <[email protected]> | 2020-02-11 14:10:47 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-11 14:10:47 -0500 |
commit | c4da85340ac9e2fa15559e42d870f3f2e2fc03c0 (patch) | |
tree | 708833ff315cfc2bd5ea00a3f07ce96548ec13f3 | |
parent | c19e2bea29af509b365cf371f847718306744068 (diff) | |
parent | ec59c7e0f99fb9ff33087e8c5b359e8827833804 (diff) | |
download | SponsorBlock-c4da85340ac9e2fa15559e42d870f3f2e2fc03c0.tar.gz SponsorBlock-c4da85340ac9e2fa15559e42d870f3f2e2fc03c0.zip |
Merge pull request #277 from ajayyy/experimental1.2.12
Fixed regex to support Firefox
-rw-r--r-- | manifest/manifest.json | 2 | ||||
-rw-r--r-- | src/content.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/manifest/manifest.json b/manifest/manifest.json index d32d3ef3..e188c986 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.2.9", + "version": "1.2.12", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ 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."); |