From d23c8b0e1fb37f7027010d5a2a265d60df48cbbc Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 26 Apr 2020 21:12:56 -0400 Subject: [PATCH] Fix adblocker error messages and increased unlisted check time --- public/_locales/en/messages.json | 4 ++-- src/content.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index a4a48b9a..5183631f 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -545,9 +545,9 @@ "message": "Channel ID not loaded yet." }, "adblockerIssue": { - "message": "It seems that something is blocking SponsorBlock's ability to get video data. This is probably uBlock. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-uBlock-Origin-Blocking-YouTube-Requests" + "message": "It seems that something is blocking SponsorBlock's ability to get video data. This is probably your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests" }, "itCouldBeAdblockerIssue": { - "message": "If this keeps occuring, it could be caused by uBlock. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-uBlock-Origin-Blocking-YouTube-Requests" + "message": "If this keeps occuring, it could be caused by your ad blocker. Please check https://github.com/ajayyy/SponsorBlock/wiki/Fix-Ad-Blocker-Blocking-SponsorBlock's-Requests" } } diff --git a/src/content.ts b/src/content.ts index a8f89589..41398467 100644 --- a/src/content.ts +++ b/src/content.ts @@ -302,7 +302,7 @@ async function videoIDChange(id) { // If enabled, it will check if this video is private or unlisted and double check with the user if the sponsors should be looked up if (Config.config.checkForUnlistedVideos) { try { - await utils.wait(() => !!videoInfo, 5000, 10); + await utils.wait(() => !!videoInfo, 5000, 1); } catch (err) { alert(chrome.i18n.getMessage("adblockerIssue")); }