Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot block request to YouTube after video closed #418

Closed
metaphoricgiraffe opened this issue Jun 29, 2015 · 5 comments
Closed

Cannot block request to YouTube after video closed #418

metaphoricgiraffe opened this issue Jun 29, 2015 · 5 comments

Comments

@metaphoricgiraffe
Copy link

Issue summary
Cannot block behind-the-scene image request after YouTube video is closed.

To reproduce

  1. Open YouTube video (e.g. https://www.youtube.com/watch?v=3TtVsy98ces) in a new tab
  2. Open uBlock logger (chrome://ublock0/content/logger-ui.html)
  3. Close YouTube video tab and observe outgoing requests
  4. See image requests to https://s.youtube.com/api/stats/qoe?event=streamingstats and https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage being made in the logger after video is closed
  5. Create filter from UI to block requests
  6. Retry steps 1-4 to see requests are blocked

Screenshots

UI Logger in step 4 and 6 showing requests to s.youtube.com being made:
requests

Filters created in step 5:
filter

Filters in uBlock dashboard:
youtube-image

Symptoms of the issue

Requests made to https://s.youtube.com/api/stats/qoe?event=streamingstats and https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage should be colored red (ie, a blocked request), instead of white.

Browser details

uBlock Origin 0.9.9.3 (beta), HTTPS Everywhere
Firefox 38.0.5 (latest version)
Windows 7

Also reproduced in:
uBlock Origin 0.9.9.1
Chrome 43.0.2357.130 (latest version)
Windows 8
Type of request is "object" instead of "image" in Google Chrome

@ghost
Copy link

ghost commented Jun 29, 2015

Do you have "I am an advanced user" enabled in the dashboard? No? Then it won't work.

https://github.com/gorhill/uBlock/wiki/Behind-the-scene-network-requests
The filtering of behind-the-scene network request is available to advanced users.

@metaphoricgiraffe
Copy link
Author

dynamic

@hotdogman Yes, I use the dynamic filtering as well.

I just tried dynamic filtering instead of static filtering and it still doesn't turn "red" like my other blocked requests.

Were you able to reproduce the possible bug?

@gorhill
Copy link
Owner

gorhill commented Jun 29, 2015

Is behind-the-scene whitelisted? (it is by default)

@metaphoricgiraffe
Copy link
Author

Yes, it was whitelisted.

That fixes it.

@ghost
Copy link

ghost commented Feb 2, 2016

I would like to note that requests to s.youtube.com (probably the one with watchtime in the url - I'm guessing) are used to remember the position(timecode) that the video was on, and this position is restored later on when revisiting said video eg. upon browser restarts, or visiting the same video a few days later. This works for multiple videos not only the last viewed one.

Curiously, I remember that this worked even though I've whitelisted s.youtube.com (and in behind-the-scene) within uMatrix, BUT uBlock Origin still had it blacklisted(red); I think it was dependent on the order that these 2 addons were installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants