ajayyy / SponsorBlock

Skip YouTube video sponsors (browser extension)
https://sponsor.ajay.app
GNU General Public License v3.0
10.24k stars 323 forks source link

Adblocker warning with setting "Ignore Unlisted/Private Videos" and youtube-nocookie embeds #464

Closed chk1 closed 2 years ago

chk1 commented 4 years ago

Sponsorblock 2.0.5.1 Firefox 80.0 - some addons including uBlock Origin Firefox 81.0b8 (Developer Edition) - all default settings, no other addons

Steps to reproduce

Problem

The following message always appears as a Javascript alert a short time after page load:

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

None of the URLs in the Wiki are being blocked from what I can tell, in the uBO logs, Firefox devtools and browser console. I tried adding the recommended settings to my uBO filter list but there was no difference. Playing with Firefox' tracking, privacy and autoplay controls made no difference either.

I do not have any other network or DNS-type blockers installed.

Examples

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/bhGIf8KP2-w" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

This particular video does not have SponsorBlock data (very short video), the alert is shown https://jsfiddle.net/ryo5wsak/

This video has endcards in the SB database, the alert is shown, and the SB data is still being loaded successfully (setting Endcards - Show in seek bar) https://jsfiddle.net/nsqk5p3f/

ajayyy commented 4 years ago

Ah, I think this is caused by requesting a youtube.com API from a non-youtube domain. CORS issue.

getVideoInfo() should use the current domain, not just YouTube.com.

youtube-nocooke.com/get_video_info does work.

Will have to test if this breaks on invidious as well

ajayyy commented 3 years ago

Should be fixed

sivizius commented 3 years ago

Does not seem to be fixed (added this addon to firefox today and enabled this option), version 2.0.11.2 (last update January 23, 2021). I have uMatrix, uBlock Origin and Privacy Budger installed, but I disabled them and the error is still there. However, can live with disabling the option.

ajayyy commented 3 years ago

I've been getting many reports about this recently for non cookie stuff too, so maybe YouTube changed something

ajayyy commented 3 years ago

@sivizius Can you check the console on the YouTube page for the following error?

[SB] Failed at getting video info from YouTube.

If you find that, can you try it again with the latest beta (https://github.com/ajayyy/SponsorBlock/releases/tag/2.0.12.1), I made it log the data it got from YouTube if it is unable to parse it. If you see that, send the log here.

sivizius commented 3 years ago

Nope, only unrelated errors (like Content Security Policy and Cross Origin Request Block)

ajayyy commented 2 years ago

This warning doesn't exist anymore