-
Notifications
You must be signed in to change notification settings - Fork 758
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
Comments
June 2024 - YouTube SSAP ads issue: PLEASE UPDATE QUICK FIX LIST by clicking this linkWhen 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. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Disable everything other than uBlock Origin and see if it does away. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
@FrostedNiips Please follow the instructions in the top post |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@somebody0278 Can you do these steps (follow strictly the step order, don't mix the steps orders, or skip any steps):
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@marcussacana Follow the 1st post please. |
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? |
I'm getting YT ads after following all steps in the thread header. I'm running Firefox on win10. exact link: 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… |
@ktpolanski @SirRailOfGun @bingus123132 In the page that you see the issue, can you press |
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. |
@SirRailOfGun Can you still check the |
@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) |
@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
while keep the first line and test again. |
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.:
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. |
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! |
@stephenhawk8054 I can confirm applying your workaround fixed the loop issue. Thank you so much! |
For a cleaner experience, you should include a cosmetic rule, like before. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@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 And this is log from report an issue. Do you want me to make a new issue??? Thanks |
@pikachukaki Test again in a new browser profile with only uBO and its default settings. |
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: 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: |
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... 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. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@Himanshu2ht Please follow the 1st post. Don't follow any arbitrary comments targeting totally different issues. |
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.1.59.0
+)video tutorial
1-update-uBO.mp4
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
click this link then load Youtube in a new tab.
Some browsers with built-in blockers
Tracking Prevention
video tutorial
4-disabling-extensions.mp4
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!! 🟥video tutorial
5-copying-troubleshooting-info.mp4
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
at your own risk.
Old youtube threads
The text was updated successfully, but these errors were encountered: