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

YouTube has started detecting when we automatically skip ads #51

Open
insin opened this issue Aug 13, 2024 · 2 comments
Open

YouTube has started detecting when we automatically skip ads #51

insin opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working youtube-change

Comments

@insin
Copy link
Owner

insin commented Aug 13, 2024

Might need to mix it up a bit

@insin insin added bug Something isn't working youtube-change labels Aug 13, 2024
@insin
Copy link
Owner Author

insin commented Aug 16, 2024

Default view (non-Theater)

The "Ad blockers violate YouTube's Terms of Service" overlay is displayed here

firefox_617QnUPXfj

The player is hidden by this rule:

firefox_1SWEJQgjB7

The video itself is hidden by moving it off-screen using top:

Cui60A09DD

If we…

  1. Hide #error-screen when it contains ytd-enforcement-message-view-model
  2. Make #movie_player visible
  3. Move video back into view by setting top: 0 and click it

…the video will start playing.

While testing these steps manually, it took multiple clicks for the video to successfully play.

This is what's happening to the DOM when I click on the video 3 times with the following styles applied:

ytd-watch-flexy[player-unavailable] #error-screen:has(ytd-enforcement-message-view-model) {
  display: none;
}
ytd-watch-flexy[player-unavailable]:has(#error-screen ytd-enforcement-message-view-model) #player-container-outer.ytd-watch-flexy {
  visibility: visible;
}
ytd-watch-flexy[player-unavailable]:has(#error-screen ytd-enforcement-message-view-model) #movie_player video {
  top: 0 !important;
}
firefox_sFPqSEIvRs.mp4

@insin
Copy link
Owner Author

insin commented Aug 16, 2024

Theater mode

image

The player itself isn't hidden in theater mode, but the video is still positioned off-screen

image

Showing and clicking the video element still eventually forces it to play (took me 5 clicks on the first attempt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working youtube-change
Projects
None yet
Development

No branches or pull requests

1 participant