Fix adblocker error messages and increased unlisted check time

This commit is contained in:
Ajay Ramachandran
2020-04-26 21:12:56 -04:00
parent 18852d16ac
commit d23c8b0e1f
2 changed files with 3 additions and 3 deletions

View File

@@ -545,9 +545,9 @@
"message": "Channel ID not loaded yet." "message": "Channel ID not loaded yet."
}, },
"adblockerIssue": { "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": { "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"
} }
} }

View File

@@ -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 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) { if (Config.config.checkForUnlistedVideos) {
try { try {
await utils.wait(() => !!videoInfo, 5000, 10); await utils.wait(() => !!videoInfo, 5000, 1);
} catch (err) { } catch (err) {
alert(chrome.i18n.getMessage("adblockerIssue")); alert(chrome.i18n.getMessage("adblockerIssue"));
} }