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

🟥 ALL YouTube issues: D-O-N-'T COMMENT without reading the 1st post🟥 #20586

Open
5 tasks done
stephenhawk8054 opened this issue Nov 10, 2023 · 2,046 comments
Open
5 tasks done
Labels
ongoing ongoing issue

Comments

@stephenhawk8054
Copy link
Member

stephenhawk8054 commented Nov 10, 2023

⚠️ P-L-E-A-S-E, PLEASE, PLEASE, PLEASE read and follow all of the instructions first ⚠️

Note: After each step, close your current tabs and open new tab to test again or it won't work.

If you got 282054944 error on player, DO NOT CLEAR COOKIES.

  • I updated uBO to the latest versions (1.59.0+)
video tutorial
1-update-uBO.mp4
  • I removed custom config / reset to defaults. <== This means removing your custom filters (or disabling My filters) and disabling ALL additional lists you've enabled manually. It might be quicker to make a backup of your config and restore to defaults instead.
video tutorials
2-disabling-custom-filter-config.mp4
2-2-reset-to-defaults.mp4
  • My filter lists are up to date.

click this link then load Youtube in a new tab.

Some browsers with built-in blockers

  • Opera, Vivaldi, Brave
  • Edge: Click on "lock" icon at the left of URL bar -> Turn off Tracking Prevention
video tutorial
4-disabling-extensions.mp4
  • I did not remove any of the default filter lists, or I have verified that the issue was not caused by removing any of the default lists.

Restarting your browser afterwards may help too. On Chromium-based browsers uBO can't reliably block ads after you launched browser or switched profiles including "Open link in incognito" and "Open link as User X". This state of unable-to-block will be kept until you do manual refresh of the page.


🟥 When reporting, A-L-W-A-Y-S provide your Troubleshooting Information! ALWAYS!! 🟥

  • On YouTube page that has issue: click 🛡️ uBO's icon > 💬 Report > Click "Troubleshooting information" > Select all > Copy > Share it.
video tutorial
5-copying-troubleshooting-info.mp4
  • Then share the EXACT links / URLs that you see the issue.
  • Describe the steps to reproduce in the most details as possible.
  • Provide video recordings of how to reproduce the issue.

It is Youtube's own issue that endcards are shown too early if SSAP ads play. Do not report them as uBO's issue unless you're 100% sure this is caused by filters.


If you suffer slow loading, test

www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_enable_ab_rsp_cl, false)
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.ab_pl_man, false)
||googlevideo.com/videoplayback$xhr,3p,method=get,domain=www.youtube.com

at your own risk.


Old youtube threads

@stephenhawk8054 stephenhawk8054 added the ongoing ongoing issue label Nov 10, 2023
@stephenhawk8054
Copy link
Member Author

stephenhawk8054 commented Nov 10, 2023

June 2024 - YouTube SSAP ads issue: PLEASE UPDATE QUICK FIX LIST by clicking this link

When reporting, please tell exactly which BROWSER you are using, which METHOD you are testing and DESCRIBE the steps to reproduce the issue in details, including the URLs where you see the issue.

@stephenhawk8054 stephenhawk8054 pinned this issue Nov 10, 2023
@mapx- mapx- mentioned this issue Nov 10, 2023
10 tasks
@TheAGames10

This comment was marked as off-topic.

@iam-py-test

This comment was marked as off-topic.

@TheAGames10

This comment was marked as off-topic.

@iam-py-test
Copy link
Contributor

iam-py-test commented Nov 10, 2023

Disable everything other than uBlock Origin and see if it does away.
Then, enable them one-by-one and see which one caused it.
Thanks

@TheAGames10

This comment was marked as resolved.

@u-RraaLL

This comment was marked as resolved.

@FrostedNiips

This comment was marked as outdated.

@stephenhawk8054
Copy link
Member Author

@FrostedNiips Please follow the instructions in the top post

stephenhawk8054 added a commit that referenced this issue Nov 12, 2023
stephenhawk8054 added a commit that referenced this issue Nov 12, 2023
@somebody0278

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as outdated.

@somebody0278

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as off-topic.

@somebody0278

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as outdated.

@mapx- mapx- mentioned this issue Nov 12, 2023
10 tasks
@stephenhawk8054
Copy link
Member Author

@somebody0278 Can you do these steps (follow strictly the step order, don't mix the steps orders, or skip any steps):

  1. Click on uBO icon > ▤ "The logger" icon, it will open a logger window
  2. Open new tab and reproduce the issue
  3. Switch to the logger window that was opened in step 1, click on search bar, choose blocked
  4. Copy the logger via 📋 export/copy button at the top right
  5. Paste the logs here

@MandiYang

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as outdated.

@MandiYang

This comment was marked as outdated.

@MandiYang

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as outdated.

@MandiYang

This comment was marked as outdated.

@stephenhawk8054

This comment was marked as outdated.

@stephenhawk8054
Copy link
Member Author

@marcussacana Follow the 1st post please.

@ktpolanski
Copy link

@blondroid Can you test these filters:

www.youtube.com#@#+js(trusted-rpnt, script, (function serverContract(), (()=>{let e="";document.addEventListener("DOMContentLoaded"\,(function(){if(!window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id)return;const t=()=>{const t=document.getElementById("movie_player");if(!t)return;const n=t.querySelector("video");if(!n)return;const o=t.getVideoStats()?.ssap;if(n.duration&&o&&o.includes("vid.nvd")){const i=parseInt(o.split("st.").at(-1).split(";")[0])/1e3;let r=[];for(const e of o.matchAll(/\bcpn\.([-\w]+)/g))r.push(e[1]);const s=r.join("\,");(!1===n.loop&&e!==s&&n.currentTime<i||!0===n.loop&&n.currentTime<i||.001===n.currentTime&&n.currentTime<i)&&(t.seekTo(i)\,e=s)}};t();new MutationObserver((()=>{t()})).observe(document\,{childList:!0\,subtree:!0})}))})();(function serverContract(), sedCount, 1)

www.youtube.com##+js(trusted-rpnt, script, (function serverContract(), 'console.log("uBO - injected");(()=>{document.addEventListener("DOMContentLoaded",(function(){const skipAd=()=>{const videoPlayer=document.getElementById("movie_player");if(!videoPlayer)return;console.log(videoPlayer.getStatsForNerds()?.debug_info,"uBO - debug");if(!videoPlayer.getStatsForNerds()?.debug_info?.startsWith("SSAP, AD"))return;const progress=videoPlayer.getProgressState();console.log(JSON.stringify(progress),"uBO - progress");if(progress&&progress.duration>0){videoPlayer.seekTo(progress.duration)}};skipAd();const observer=new MutationObserver((()=>{skipAd()}));observer.observe(document,{childList:true,subtree:true})}))})();(function serverContract()', sedCount, 1)

Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes > Open new tab and test again.

Remember to turn on Allow custom filters requiring trust in "My filters" pane.

I just started getting hideous ads that seemed baked right into the video, no skip, no nothing, In fact they would distort the start of the video by a few seconds, with correct audio playing but a weird still from the ad lingering.

Applying the above resolved it. Thank you. Are there plans to push this to main?

@SirRailOfGun
Copy link

SirRailOfGun commented Sep 16, 2024

I'm getting YT ads after following all steps in the thread header. I'm running Firefox on win10.

exact link:
https://www.youtube.com/watch?v=kIWMH6PU5B8

screencap of ad
image

troubleshooting info follows

uBlock Origin: 1.59.0
Firefox: 130
filterset (summary):
 network: 151888
 cosmetic: 48336
 scriptlet: 20817
 html: 1971
listset (total-discarded, last-updated):
 removed:
  user-filters: null
 default:
  ublock-filters: 40318-138, 4m
  ublock-badware: 11215-6, 4m
  ublock-privacy: 1151-27, 4m
  ublock-unbreak: 2528-1, 4m
  ublock-quick-fixes: 125-4, 1m
  easylist: 85391-187, 4m
  easyprivacy: 53063-62, 4m
  urlhaus-1: 27245-0, 4m
  plowe-0: 3542-992, 4m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 1122 ms (selfie)
 maxAssetCacheWait: 50 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 43
 network:
  youtube.com: 23
  doubleclick.net: 3
  google.com: 17
 extended:
  ##.ytp-featured-product
  ###masthead-ad
  ###player-ads
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##ytd-ad-slot-renderer
  ##ytd-rich-item-renderer:has(> #content > ytd-ad-slot-renderer)
  ##+js(set-constant, ytInitialPlayerResponse.playerAds, undefined…
  ##+js(set-constant, ytInitialPlayerResponse.adPlacements, undefi…
  ##+js(set-constant, ytInitialPlayerResponse.adSlots, undefined)
  ##+js(set-constant, playerResponse.adPlacements, undefined)
  ##+js(json-prune-fetch-response, playerAds adPlacements adSlots …
  ##+js(json-prune-fetch-response, reelWatchSequenceResponse.entri…
  ##+js(trusted-replace-node-text, script, (function serverContrac…
  ##+js(adjust-setTimeout, [native code], 17000, 0.001)
  ##+js(json-prune-xhr-response, playerAds adPlacements adSlots pl…

@bingus123132
Copy link

the ads got through i got ss,
Screenshot 2024-09-17 101650
Screenshot 2024-09-17 101708
Screenshot 2024-09-17 101622

@stephenhawk8054
Copy link
Member Author

@ktpolanski @SirRailOfGun @bingus123132 In the page that you see the issue, can you press F12 button to open browser's devtools -> Go to Console tab -> type yt.config_.EXPERIMENT_FLAGS.html5_enable_ssap_entity_id like this and check its value?

image

@SirRailOfGun
Copy link

the issue seems to have resolved itself now? It might have been a case where some cache didn't properly clear the first few times I did troubleshooting. I'll keep an eye open tho.

@stephenhawk8054
Copy link
Member Author

@SirRailOfGun Can you still check the yt.config_.EXPERIMENT_FLAGS.html5_enable_ssap_entity_id value right now?

@SirRailOfGun
Copy link

image

@stephenhawk8054
Copy link
Member Author

stephenhawk8054 commented Sep 17, 2024

@SirRailOfGun Yeah, then the ads are just gone temporarily. If you see them again, can you test these filters?

www.youtube.com#@#+js(trusted-rpnt, script, (function serverContract(), (()=>{let e="";document.addEventListener("DOMContentLoaded"\,(function(){if(!window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id)return;const t=()=>{const t=document.getElementById("movie_player");if(!t)return;const n=t.querySelector("video");if(!n)return;const o=t.getVideoStats?.()?.ssap;if(n.duration&&o&&o.includes("vid.nvd")){const i=parseInt(o.split("st.").at(-1).split(";")[0])/1e3;let r=[];for(const e of o.matchAll(/\bcpn\.([-\w]+)/g))r.push(e[1]);const s=r.join("\,");(!1===n.loop&&e!==s&&n.currentTime<i||!0===n.loop&&n.currentTime<i||.001===n.currentTime&&n.currentTime<i)&&(t.seekTo(i)\,e=s)}};t();new MutationObserver((()=>{t()})).observe(document\,{childList:!0\,subtree:!0})}))})();(function serverContract(), sedCount, 1)

www.youtube.com##+js(trusted-rpnt, script, (function serverContract(), "YOUTUBE_PREMIUM_LOGO"!==ytInitialData?.topbar?.desktopTopbarRenderer?.logo?.topbarLogoRenderer?.iconImage?.iconType&&(location.href.startsWith("https://www.youtube.com/tv#/")||location.href.startsWith("https://www.youtube.com/embed/")||document.addEventListener("DOMContentLoaded"\,(function(){const t=()=>{const t=document.getElementById("movie_player");if(!t)return;if(!t.getStatsForNerds?.()?.debug_info?.startsWith?.("SSAP\, AD"))return;const e=t.getProgressState?.();e&&e.duration>0&&e.loaded<e.duration&&t.seekTo?.(e.duration)};t()\,new MutationObserver((()=>{t()})).observe(document\,{childList:!0\,subtree:!0})})));(function serverContract(), sedCount, 1)

@Yuki2718
Copy link
Contributor

Yuki2718 commented Sep 17, 2024

@SirRailOfGun The second filter in the above post by @stephenhawk8054 may have very occasional freezing issue. If you experienced that, please replace the second line with

www.youtube.com##+js(trusted-rpnt, script, (function serverContract(), "YOUTUBE_PREMIUM_LOGO"!==ytInitialData?.topbar?.desktopTopbarRenderer?.logo?.topbarLogoRenderer?.iconImage?.iconType&&(location.href.startsWith("https://www.youtube.com/tv#/")||location.href.startsWith("https://www.youtube.com/embed/")||document.addEventListener("DOMContentLoaded"\,(function(){const t=()=>{const t=document.getElementById("movie_player");if(!t)return;if(!t.getStatsForNerds?.()?.debug_info?.startsWith?.("SSAP\, AD"))return;const e=t.getProgressState?.();e&&e.duration>0&&e.loaded<e.duration&&t.seekTo?.(e.duration)};t()\,new MutationObserver((()=>{t()})).observe(document\,{childList:!0\,subtree:!0})})));(function serverContract(), sedCount, 1)

while keep the first line and test again.

stephenhawk8054 added a commit that referenced this issue Sep 17, 2024
@MavenZz
Copy link

MavenZz commented Sep 18, 2024

It seems that YouTube switched to a new layout in my country (Italy) and it's completely broken for me if "uBlock filters – Cookie Notices" is enabled: since yesterday, attempting to load any video or the homepage itself causes a redirect loop between www.youtube.com and consent.youtube.com, appending the string "%3D1%26cbrd" after every reload. E.g.:

https://consent.youtube.com/m?continue=https%3A%2F%2Fwww.youtube.com%2F%3Fcbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1%26cbrd%3D1&gl=IT&m=0&pc=yt&cm=3&hl=it&src=1

I can confirm that disabling the "uBlock filters – Cookie Notices" filter fixes the issue.

I'm using Firefox 130.0.1, uBlock Origin 1.59.0, no custom filters.

@stephenhawk8054
Copy link
Member Author

@MavenZz Fixed in a091e5b

Can you test by adding this filter:

youtube.com#@#+js(trusted-set-cookie, SOCS, CAISNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMwODI5LjA3X3AxGgJlbiADGgYIgJnPpwY, , , reload, 1, domain, youtube.com)

Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes > Restart the browser and test again.

Restarting the browser is important.

@BradyThe
Copy link

@MavenZz Fixed in a091e5b

Can you test by adding this filter:

youtube.com#@#+js(trusted-set-cookie, SOCS, CAISNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMwODI5LjA3X3AxGgJlbiADGgYIgJnPpwY, , , reload, 1, domain, youtube.com)

Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in "My filters" pane > ✓ Apply changes > Restart the browser and test again.

Restarting the browser is important.

The suggested filter works. Just applying the changes was already enough to stop the loop (For now at least, Fingers crossed.) Cheers!

@MavenZz
Copy link

MavenZz commented Sep 18, 2024

@stephenhawk8054 I can confirm applying your workaround fixed the loop issue. Thank you so much!

@THEtomaso
Copy link

For a cleaner experience, you should include a cosmetic rule, like before.
This works at my end: youtube.com##.eom-v1-dialog

@pikachukaki

This comment was marked as off-topic.

@MasterKia
Copy link
Member

@pikachukaki You should follow the first post.

@pikachukaki
Copy link

@pikachukaki You should follow the first post.

i follow the first post. I reset uBO Thorium don't have buildin add blocker and i didn't have any custom filters.

This is the log from the logger

https://pastebin.com/9UQR8WsG

And this is log from report an issue.

https://pastebin.com/wKtswjGp

Do you want me to make a new issue???

Thanks

@stephenhawk8054
Copy link
Member Author

@pikachukaki Test again in a new browser profile with only uBO and its default settings.

@IdrisQe
Copy link

IdrisQe commented Sep 21, 2024

Hi, something odd has been going on these last few days. It seems that trusted-set-cookie is no longer functioning on youtube? I performed all the steps to troubleshoot - made a new browser profile with all default settings, and only ublock origin with only default settings, ensured all the filter lists were up-to-date, and went to youtube. The cookie that should have been set was not set to the correct value.

My troubleshooting information:

uBlock Origin: 1.59.0
Firefox: 115
filterset (summary):
 network: 149974
 cosmetic: 48470
 scriptlet: 20981
 html: 1990
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40552-142, 3m
  ublock-badware: 11275-6, 3m
  ublock-privacy: 1234-22, 3m
  ublock-unbreak: 2523-1, 3m
  ublock-quick-fixes: 138-0, 1m
  easylist: 85369-185, 3m
  easyprivacy: 53084-62, 3m
  urlhaus-1: 25255-0, 3m
  plowe-0: 3547-995, 3m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 1123 ms
 maxAssetCacheWait: 72 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 7
 network:
  youtube.com: 3
  google.com: 4
 extended:
  ##.ytp-featured-product
  ###masthead-ad
  ###player-ads
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##+js(trusted-replace-node-text, script, (function serverContrac…
  ##+js(adjust-setTimeout, [native code], 17000, 0.001)
  ##+js(json-prune-fetch-response, playerAds adPlacements adSlots …
  ##+js(json-prune-xhr-response, playerAds adPlacements adSlots pl…
  ##+js(set-constant, ytInitialPlayerResponse.playerAds, undefined…
  ##+js(set-constant, ytInitialPlayerResponse.adPlacements, undefi…
  ##+js(set-constant, ytInitialPlayerResponse.adSlots, undefined)
  ##+js(set-constant, playerResponse.adPlacements, undefined)
  ##+js(json-prune-fetch-response, reelWatchSequenceResponse.entri…

...it seems it won't show the full troubleshooting information even when using "select all" so i'm not sure how useful this will be.

Anyway, the issue is that the quick fixes list should be setting the SOCS cookie to:
"CAISNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMwODI5LjA3X3AxGgJlbiADGgYIgJnPpwY"
however it instead keeps the default of:
"CAESNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMwOTEyLjA4X3AwGgJlbiACGgYIgOCTqAY"
which is the same as when I have uBlock Origin disabled outright.

My browser is listed as Firefox 115 but it's actually Waterfox G6.0.19, which is based on Firefox 115 ESR. That said, this issue wasn't occuring before, and my browser is the same version that it was when it was working, so I don't think this is a browser issue.

I even tested by making a custom filter (with trust enabled) and trying to set the cookie there. Still didn't work. Of note, I cleared all my cookies before each test too, to ensure an old cookie wasn't "stuck" or something.

Also something that may be of note is that it seems the value that Youtube sets it to when accepting cookies is different now. When manually going to the cookie management page, setting Youtube History to either on or off (doesn't appear to matter which), and then accepting, Youtube sets SOCS to this instead:
"CAISNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjQwOTE3LjA2X3AwGgJlbiADGgYIgJm4twY"
while the cookie used by the quick-fixes list and suggested in a comment above is:
"CAISNQgDEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMwODI5LjA3X3AxGgJlbiADGgYIgJnPpwY"
Similar, but not the same. I'm not sure if this is related to the issue.

@stephenhawk8054
Copy link
Member Author

The filter in quick fix list is disabling that scriptlet, not setting the cookie, since it caused constant loop for many users.

@IdrisQe
Copy link

IdrisQe commented Sep 21, 2024

The filter in quick fix list is disabling that scriptlet, not setting the cookie, since it caused constant loop for many users.

Well, that would definitely explain it...
It wasn't causing me to have any issues, and disabling it is actually causing me problems. Is there a way I can un-disable it with a custom filter?

Edit: Nevermind, got it working. Trying to set the cookie wouldn't work, I guess since the quick fix filter was blocking it from being set even by my custom filter? Ironically the fix was to use the slightly different value that I was getting when setting my cookie preferences - using that in the custom filter allowed me to set it properly again, and it seems to be working the same as setting the cookie to the other value.

@github-actions github-actions bot mentioned this issue Sep 22, 2024
11 tasks
@Himanshu2ht

This comment was marked as off-topic.

@stephenhawk8054
Copy link
Member Author

stephenhawk8054 commented Sep 22, 2024

@Himanshu2ht Please follow the 1st post. Don't follow any arbitrary comments targeting totally different issues.

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

No branches or pull requests