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.com - "login" walls #245

Open
krystian3w opened this issue Aug 21, 2020 · 68 comments
Open

youtube.com - "login" walls #245

krystian3w opened this issue Aug 21, 2020 · 68 comments

Comments

@krystian3w
Copy link
Contributor

krystian3w commented Aug 21, 2020

URL(s) where the issue occurs

youtube.com

Describe the issue

Pop-up with new (?) string "Sign in to YouTube".
It may appear at the first visit or after some time.

No have match into your regex:

youtube.com##ytd-popup-container paper-dialog:has-text(/Changes to YouTube’s Terms of Service|Check out your new Library|Get access to exclusive perks|Get YouTube without the ads|How is your experience|How is YouTube today|Our Terms of Service have been updated|Rate your ads|Try it free|Try the YouTube Kids app|What is your biggest complaint|Which problems are you experiencing|You're signed out of YouTube|YouTube TV/)
youtube.com##ytd-popup-container yt-bubble-hint-renderer:has-text(/Get access to exclusive perks/)
youtube.com##ytd-popup-container yt-tooltip-renderer:has-text(/Choose what to play next/)

Screenshot(s)

Versions

  • Chrome 84
  • uBO 1.29.2

Settings

  • stock and this project

Notes

Maybe more globe range is use: :has(a[href^="https://support.google.com/youtube/?p=sign_in"])

youtube.com##ytd-popup-container > paper-dialog.ytd-popup-container[role="dialog"]:has(a[href^="https://support.google.com/youtube/?p=sign_in"])

Pop-up may use same background as cookie/rules policy:

www.youtube.com##body > .opened[opened][style^="z-index"]
@yourduskquibbles
Copy link
Owner

I can't recreate the popup so impossible for me to test right now 😒

Does it appear on first page load or after going to the site a number of times or staying on the site for extended timeframe?

@krystian3w
Copy link
Contributor Author

krystian3w commented Aug 25, 2020

For my only after first visit on homepage or when direct open first video/live link.
May need remove all YouTube cookies (pop-up may not use localstorage).

Unable see this on /user/&/channel/ (/c/) "section". Pop-up should stop direct opened video after ~3 seconds and change video frame into thumbnail.

@yourduskquibbles
Copy link
Owner

yourduskquibbles commented Aug 26, 2020

I still can't recreate on US IP with first visit in firefox temporary container with no preset cookies. Maybe EU only (will test on VPN) or some other A/B test such as browser or OS?

Test link for direct link to video https://www.youtube.com/watch?v=jXsdKpOWL1U

Test link to video at 8s mark https://www.youtube.com/watch?v=jXsdKpOWL1U?t=8

@krystian3w
Copy link
Contributor Author

Good links, here also I see:

obraz obraz
pl en (uk)

Now also have this pop-up with Firefox and "containers".

@yourduskquibbles
Copy link
Owner

Are you on Polish IP for both screenshots? Want to see if I can recreate as much of your environment as possible. Glad they are appearing on those test links for you because I can't get them to appear for me on US IP 🤔but at least have video to test on knowing you can see it.

@krystian3w
Copy link
Contributor Author

Yes - both Polish IP, language change in Chrome settings or via glitch with YouTube settings for guest in right top corner:

obraz

The language changes after refreshing and any cookie is generated about "I've already seen a pushy popup about the recommended login" to hide this pop-up via Google Idea.

@krystian3w
Copy link
Contributor Author

US no have that pop-up (Miami VPN).

I rule out that it can be hidden by blocking request/resource, because I see after change VPN to Polish localization.

@yourduskquibbles
Copy link
Owner

I just connected to Polish VPN and on first load get the popup!

@krystian3w
Copy link
Contributor Author

krystian3w commented Aug 26, 2020

IMO only that link is "stable"/"constant":

obraz
<a class="yt-simple-endpoint style-scope yt-formatted-string" 
   spellcheck="false" 
   href="https://support.google.com/youtube/?p=sign_in" 
   rel="nofollow" 
   target="_blank" 
   dir="auto">Dowiedz się więcej / Learn more</a>

@yourduskquibbles
Copy link
Owner

why not just these 2 cosmetic filters for popup signin prompt?

youtube.com##.opened
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer

@krystian3w
Copy link
Contributor Author

krystian3w commented Aug 26, 2020

.opened we have with other name:

"ytd-pop-up-overlay" "iron-overlay-backdrop"

so is no needed.


yt-upsell-dialog-renderer maybe is too generic - maybe generate fail similar as Fanboy Annoyance:

easylist/easylist@37908e6#diff-a020a1b4fa94a782267fe0a762edd58e

+! Youtube TV promos
+youtube.com##.ytd-primetime-promo-renderer
+youtube.com##ytd-popup-container

easylist/easylist@6aa17e9#diff-a020a1b4fa94a782267fe0a762edd58e

-youtube.com##ytd-popup-container

@yourduskquibbles
Copy link
Owner

yourduskquibbles commented Aug 26, 2020

youtube.com##ytd-popup-container is the filter for ANY popup functions on youtube, user initiated or loaded automatically so that is way to generic. There are old issues (#16) from couple years ago on this repository about that.

Could do a :has-text(foo) for the upsell but then you don't get matches for other languages. Just given the class name of upsell though I think this is always going to be for some purpose to try and get user to subscribe to youtubeTV or go "premium".

@randomcookiemonster
Copy link

Hello, I'm having the same problem as described in this issue, only for me the login prompt is not shown in a popup. The login prompt is shown instead of the video in the video container.

Here's a screenshot, though I probably shouldn't have cropped it: https://imgur.com/a/4Q6B158

I hope it's alright to put this here instead of creating a new issues since it's essetianlly the same issue.

@krystian3w krystian3w changed the title youtube.com youtube.com - "login" walls Aug 28, 2020
@yourduskquibbles
Copy link
Owner

@randomcookiemonster I've never seen that login wall before. What setup are you using when you see this? e.g. Is it only on chrome or mobile? In private mode with cookies blocked? More details would be good as I have never seen this one before on standard US IP

Unfortunately, only way for others to help is if it is recreatable.

@krystian3w
Copy link
Contributor Author

I once saw a similar one on blocked materials when a subscription is not paid for YouTuber.

@randomcookiemonster
Copy link

@randomcookiemonster I've never seen that login wall before. What setup are you using when you see this? e.g. Is it only on chrome or mobile? In private mode with cookies blocked? More details would be good as I have never seen this one before on standard US IP

Unfortunately, only way for others to help is if it is recreatable.

I've never seen anything like it before either, It feels like Youtube is testing something new.

My setup:

  • Firefox (desktop, win 10) release version (not beta, nightly etc).
  • Not using a private window.
  • I'm using Ublock Origin, with these filters:
    • uBlock filters
    • uBlock filters – Badware risks
    • uBlock filters – Privacy
    • uBlock filters – Resource abuse
    • uBlock filters – Unbreak
    • EasyList
    • EasyPrivacy
    • Online Malicious URL Blocklist
    • Fanboy’s Annoyance
    • uBlock filters – Annoyances
    • Peter Lowe’s Ad and tracking server list
    • SWE: Frellwit's Swedish Filter
    • Malware Domain List
    • Malware domains

@randomcookiemonster
Copy link

I once saw a similar one on blocked materials when a subscription is not paid for YouTuber.

Good idea, but im my case I don't think this is the case. None of the channels I've watched videos from require a subscription. The video will also play after I click "NOT NOW".

@yourduskquibbles
Copy link
Owner

standard residential US IP? No vpn/proxy?

@randomcookiemonster
Copy link

standard residential US IP? No vpn/proxy?

Sorry, forgot that part. I'm using a standard Swedish IP, No vpn or proxy.

@randomcookiemonster
Copy link

A possibly related problem that started at the same time is that, whenever the login prompt isn't shown, videos will start playing, the page reloads after a second, and the video doesn't play automatically this time. Maybe the prompt can't be shown and it forces a page reload?

@krystian3w

This comment has been minimized.

@randomcookiemonster
Copy link

randomcookiemonster commented Aug 28, 2020

Swedish IP

[edit: removed images]

I'm not sure what you mean, I haven't mentioned any buttons?

@krystian3w

This comment has been minimized.

@yourduskquibbles
Copy link
Owner

yourduskquibbles commented Aug 28, 2020

This combination of network and cosmetic filters blocks the signin wall for me on https://youtu.be/jXsdKpOWL1U?t=8 using Swedish VPN

||youtube.com/*jsbin/spf.vflset/*$script,domain=youtube.com
||youtube.com/notifications_ajax?action_get_registration_token=1$xhr,domain=youtube.com
||consent.google.com^$subdocument,domain=youtube.com
||google.com/js/bg/$script,domain=youtube.com
||youtube.com/youtubei/v1/log_event$xhr,domain=youtube.com


youtube.com##.opened
youtube.com###consent-bump
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer

@randomcookiemonster and @krystian3w can you test? It also still allowed me to login if i wanted to with Sign in button.

Edit: it doesn't start the video at timestamp requested but does an initial load then a sub reload? video is at least watchable without clicking through popups though?

Edit 2: With https://youtu.be/jXsdKpOWL1U?t=8 URL given by youtube (right click video, copy video URL at current timestamp), the video starts at correct timestamp when loaded in new container.

@randomcookiemonster
Copy link

||youtube.com/*jsbin/spf.vflset/*$script,domain=youtube.com
||youtube.com/notifications_ajax?action_get_registration_token=1$xhr,domain=youtube.com
||consent.google.com^$subdocument,domain=youtube.com
||google.com/js/bg/$script,domain=youtube.com
||youtube.com/youtubei/v1/log_event$xhr,domain=youtube.com


youtube.com##.opened
youtube.com###consent-bump
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer

Thank you I will test this, might take a while to be sure it works.

Do I add everything to "My Filters"?

@randomcookiemonster
Copy link

randomcookiemonster commented Aug 28, 2020

Edit: it doesn't start the video at timestamp requested but does an initial load then a sub reload? video is at least watchable without clicking through popups though?

Sorry I'm not sure what you mean by this?

Edit: Oh, the filters reloads the page?

@krystian3w
Copy link
Contributor Author

krystian3w commented Aug 28, 2020

Do I add everything to "My Filters"?

yes.

youtube.com##.opened

no needed, you added in the past: ##iron-overlay-backdrop

Sorry I'm not sure what you mean by this?

Also I don't understand, filters break e.g. https://www.youtube.com/watch?v=jXsdKpOWL1U?t=8

@randomcookiemonster
Copy link

Also I don't understand, filters break e.g. https://www.youtube.com/watch?v=jXsdKpOWL1U?t=8

I think that's what he said.

@krystian3w

This comment has been minimized.

@yourduskquibbles
Copy link
Owner

Marking as partially solved since I have no fix for Swedish Login Wall

@Yaron10
Copy link

Yaron10 commented Sep 3, 2020

I still (intermittently) get the prompt with the following rules:

youtube.com##.opened
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer

@krystian3w
Copy link
Contributor Author

Try after update from c384322

this no have filter solution for now: https://i.imgur.com/3NPYoNd.png

@Yaron10
Copy link

Yaron10 commented Sep 3, 2020

https://i.imgur.com/3NPYoNd.png is the prompt I get.

Thank you.

@Yaron10
Copy link

Yaron10 commented Sep 3, 2020

It's either https://user-images.githubusercontent.com/10229320/91622121-5649c080-e99e-11ea-8c88-7fdf11c7dbe9.png or https://i.imgur.com/3NPYoNd.png.

If I understand you correctly, there's no solution currently for both.

@krystian3w
Copy link
Contributor Author

krystian3w commented Sep 3, 2020

Yes, because the tests with the network filters was failed and that black box over the player is still visible.

@Yaron10
Copy link

Yaron10 commented Sep 3, 2020

OK. Thanks again.

@randomcookiemonster
Copy link

I am now getting both login walls. 😞

I'll try adding:
youtube.com###consent-bump:remove()
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer:remove()
youtube.com##.opened:remove()
to my filters (uBlock Origin) to if that at least removes the popup.

Thanks for the work you've done on this so far. 👍

@krystian3w
Copy link
Contributor Author

Germany 🇩🇪 also should have pop-up (A/B test on more people...).

@krystian3w

This comment has been minimized.

@Termuellinator
Copy link

Just found out about this list, thank you, nice thing 👍

Regarding Youtube, it has some issues though - it gets rid of the new annoying login-prompt, but the video is then stopped again for me and doesn't autoplay anymore.
The other thing (probably the bigger issue tbh) is that on the YT-Homepage, the sidebar doesn't stay anymore, but scrolls up. And after some scrolling, the video-thumbnails don't show the video-duration anymore. When disabling the list and reloading, all is back to normal there.

@krystian3w

This comment has been minimized.

@randomcookiemonster
Copy link

I'll try adding:
youtube.com###consent-bump:remove()
youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer:remove()
youtube.com##.opened:remove()
to my filters (uBlock Origin) to if that at least removes the popup.

This has the side-effect of returnng the issue I described in an earlier my comment of mine, but I'll sum it up again. The video starts playing, after maybe 1 second the page reloads, and the video is paused at the beginning. I stopped uBlock Origin when this happened, and the popup login wall immediatelly showed up. Ater clicking "No thanks", restarting uBlock Origin and reloading the page the issue that's the topic of this comment was gone. But it will probably return next time the popup login wall is triggered.

@randomcookiemonster
Copy link

@randomcookiemonster try this: uBlockOrigin/uAssets#7636 (comment)

youtube.com##+js(set, yt_logging_screen, undefined)

Thanks I will.

@krystian3w
Copy link
Contributor Author

Other user said "scriptlet no block pop-up / black rectangle above video".

@randomcookiemonster
Copy link

randomcookiemonster commented Sep 6, 2020

@randomcookiemonster try this: uBlockOrigin/uAssets#7636 (comment)

youtube.com##+js(set, yt_logging_screen, undefined)

This does not work.

@Termuellinator
Copy link

I only did some tests, but for me it seems that adding

www.youtube.com###consent-bump
www.youtube.com##.opened
www.youtube.com##ytd-popup-container.ytd-app.style-scope

to my uBlock filters gets rid of the login nagscreen and prevents the video from pausing without impacting the yt main page.
(taken from here )

@krystian3w
Copy link
Contributor Author

krystian3w commented Sep 8, 2020

##ytd-popup-container.ytd-app.style-scope break notfiy from bell "🔔" / subscribe / share as: #245 (comment) / #245 (comment)

Also pop-up is visible once as per time (how long cookies expire) so simple CSS filter may generate FP with fix stop played video.


So far, this project has added 3 elements deletion on the page as fast as uBO/AdGuard can - similar to idea by Illusi (https://www.reddit.com/r/youtube/comments/im18pu/sign_in_spam_suddenly/g3whvel/)

@c33s
Copy link

c33s commented Sep 17, 2020

now this also hit austria. can block it with the filters i found on reddit but it stops playing the video :(

because of cookie blocking i would get the login wall on each video

@krystian3w

This comment has been minimized.

@Takuyax
Copy link

Takuyax commented Oct 2, 2020

www.youtube.com###consent-bump
www.youtube.com##.opened
www.youtube.com##ytd-popup-container.ytd-app.style-scope

This worked great for me for a few days, but youtube now interrupts video playback immediately at startup with the attached error message. Reloading removed the error, but it immediately did the previously described auto-reload without autoplay.
No idea if this can even be blocked, since it looks as if they're running some check to see if the nag-screen was displayed.
Screenshot_20201002_162858

@krystian3w
Copy link
Contributor Author

New without close button or hidden by non good filter.

@krystian3w
Copy link
Contributor Author

For some people these may can break search bar:

youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer:remove()

Maybe better use:

youtube.com###upsell-dialog-text > a[href*="sign"]:upward(body > * > *)

yourduskquibbles added a commit that referenced this issue Jan 14, 2021
Filter updated as suggested: #245 (comment)
@yourduskquibbles
Copy link
Owner

For some people these may can break search bar:

youtube.com##ytd-popup-container > paper-dialog > yt-upsell-dialog-renderer:remove()

Maybe better use:

youtube.com###upsell-dialog-text > a[href*="sign"]:upward(body > * > *)

@krystian3w I've updated to your suggestion in 80188ca

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

No branches or pull requests

8 participants