uBlockOrigin/uAssets

🟄[uBO only] ALL YouTube issues: D-O-N-'T COMMENT till 100% read, understand, and followed the 1st post🟄

Closed this issue Ā· 764 comments

āš ļø P-L-E-A-S-E, PLEASE, PLEASE, PLEASE read and follow all of the instructions first āš ļø

Important

If you are using uBO Lite, read #28707

ALL COMMENTS ABOUT UBO LITE AT THIS THREAD WILL BE REMOVED

For Chromium browsers, please install userscript as instructed at post no.2

Note

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

  • I have created a new browser profile with only uBO and its default settings, and confirmed the issue still occurs in that new profile

  • I updated uBO to the latest versions (1.65.0+)

video tutorial
1-update-uBO.mp4
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.

  • I completely disabled ALL other extensions AND browser's built-in blockers. <== They might interfere with our solutions.

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.

  • I verified the issue does not exist if I turn off uBO.


🟄 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.

Old youtube threads

For uBO (not uBO Lite) on Chromium browsers

Warning

This won't work when you use in Incognito mode or when you disable cookie on the site

  1. Install userscript extension Violentmonkey
  2. Click on Violentmonkey icon > Settings (cog icon) > Settings at the left side bar > Go to Advanced settings > Check Synchronous page mode

Image

  1. Go to Installed scripts at the left sidebar and click on + icon to create a new userscript
  2. Copy paste this userscript:
// ==UserScript==
// @name        YouTube
// @namespace   UserScripts
// @match       https://www.youtube.com/*
// @grant       none
// @version     1.0
// @run-at      document-start
// ==/UserScript==

const textContentFactory = (() => {
  const out = { createScript: s => s };
  const { trustedTypes: tt } = self;
  if (tt instanceof Object) {
    if (typeof tt.getPropertyType === "function") {
      if (tt.getPropertyType("script", "textContent") === "TrustedScript") {
        return tt.createPolicy("userscript", out);
      }
    }
  }
  return out;
})();
const handleMutations = mutations => {
  for (const mutation of mutations) {
    for (const node of mutation.addedNodes) {
      if (node.nodeName === "SCRIPT" && node.textContent.includes('window,"fetch"')) {
        node.textContent = textContentFactory.createScript("");
      }
    }
  }
};
const observer = new MutationObserver(handleMutations);
observer.observe(document, {
  childList: true,
  subtree: true
});
document.addEventListener('DOMContentLoaded', () => {
  observer.disconnect();
  observer = null;
}, { once: true });
  1. Click Save > Click Settings at the top left > At Custom metadata section, choose @run-at with document-start and @inject-into with page

Image


About sharing accounts

Important

Since YouTube mostly uses A/B testing for detection and ads issues, we can't investigate without accounts. If anyone who's having issues and is willing to share account credentials, you can send to email stephenhawk8054@protonmail.com

People on reddit reported rules to prevent slow loading are not working anymore (they said 4th rule was working well before). Can somebody come up with a new workaround?

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

Probably should add somewhere that for uBO Lite the filtering mode must be set to at least Optimal for the site.

People on reddit reported rules to prevent slow loading are not working anymore (they said 4th rule was working well before). Can somebody come up with a new workaround?

This no longer works for me

New thread!

Does uBlock work on Twitch, or is seeing ads on Twitch an issue I should report?

@AutistOctavius Comment here please: #5184

so.. i have youtube playback problem with lan-block filter

i managed to look up the logger and find that this rule:

*$strict3p,ipaddress=lan,from=~0.0.0.0|~127.0.0.1|~[::1]|~[::]|~local|~localhost

is interfering with video URL

https://rr2---sn-uxa3vhnxa-2ahe.googlevideo.com/videoplayback?

any workarounds? currently disable that filter and youtube is working again

uBlock Origin: 1.62.0
Firefox: 135
filterset (summary):
 network: 312727
 cosmetic: 207258
 scriptlet: 54717
 html: 2612
listset (total-discarded, last-updated):
 removed:
  plowe-0: null
 added:
  https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt: 1062-2, 32m
  https://malware-filter.gitlab.io/botnet-filter/botnet-filter.txt: 7-0, 32m
  https://raw.githubusercontent.com/arfshl/personal-blocklist/main/internal-usage/b.txt: 848-0, 32m
  https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt: 472-0, 32m
  https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid.adfl.txt: 10326-0, 32m
  adguard-generic: 99952-4476, 32m
  adguard-mobile: 10839-67, 32m
  adguard-spyware-url: 2023-137, 32m
  adguard-spyware: 153676-1692, 32m
  block-lan: 71-0, 8m
  curben-phishing: 1738-0, 32m
  adguard-cookies: 33632-71, 32m
  [8 lists not shown]: [too many]
 default:
  user-filters: 0-0, never
  ublock-filters: 40792-203, 32m
  ublock-badware: 11928-7, 32m
  ublock-privacy: 2718-35, 32m
  ublock-unbreak: 2625-1, 32m
  ublock-quick-fixes: 300-12, 32m
  easylist: 69787-1540, 32m
  easyprivacy: 53408-28295, 32m
  urlhaus-1: 25250-0, 32m
filterset (user): [empty]
userSettings:
 advancedUserEnabled: true
 webrtcIPAddressHidden: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 6740 ms
 maxAssetCacheWait: 33 ms
 cacheBackend: indexedDB

@arfshl Are you using VPN or proxy?

No VPN or Proxy, but i use AdGuard Home and i hosted that on my devices

@arfshl Can you go to about:networking#dnslookuptool, input rr2---sn-uxa3vhnxa-2ahe.googlevideo.com and check the resolved IPs?

@arfshl Can you go to about:networking#dnslookuptool, input rr2---sn-uxa3vhnxa-2ahe.googlevideo.com and check the resolved IPs?

IP:
114.125.240.13
2404:c0:1800:1::d

@arfshl Can you open new tab, press F12 to open devtools, go to "Network" tab and reproduce the issue. Then check the IP of googlevideo.com domain in here (click on the POST arrow dropdown to see the IP there):

Image

No address?

Screenshot from 2025-03-14 12-12-21.png

click on the POST arrow dropdown to see the IP there

You need to scroll up, you'll see an arrow besides the word "POST" there.

I see dude, i didn't remember that i use powertunnel which connect with local proxy, its 127.0.0.1:8085

So.. can i just disable this list for workaround?

@arfshl If you are proxying all connections to LAN, then this list is obviously not for you: uBlockOrigin/uBlock-issues#3400 (comment), you should not use it.

Since this is not specifically related to YT, if you want to discuss about this list, please go to the above issue thread instead. This issue thread is just for issues specifically related to YouTube.

@arfshl If you are proxying all connections to LAN, then this list is obviously not for you: uBlockOrigin/uBlock-issues#3400 (comment), you should not use it.

Since this is not specifically related to YT, if you want to discuss about this list, please go to the above issue thread instead. This issue thread is just for issues specifically related to YouTube.

Ok then, Thanks!!

youtube has just been detecting my ublock origin on chrome starting today

Image

uBlock Origin: 1.62.0
Chromium: 134
filterset (summary):
 network: 142150
 cosmetic: 41660
 scriptlet: 24552
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40575-361, 1h.18m Ī”
  ublock-badware: 11939-7, 1h.18m Ī”
  ublock-privacy: 2755-33, 1h.18m Ī”
  ublock-unbreak: 2572-0, 1h.18m Ī”
  ublock-quick-fixes: 243-0, 18m Ī”
  easylist: 69846-425, 1h.18m Ī”
  easyprivacy: 53413-584, 1h.18m Ī”
  urlhaus-1: 25105-0, now
  plowe-0: 3464-0, now
filterset (user): [empty]
switchRuleset:
 added: [array of 4 redacted]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 49273 ms
 maxAssetCacheWait: 6028 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 16
 network:
  youtube.com: 6
  doubleclick.net: 5
  google.com: 5
 extended:
  ##.ytp-featured-product
  ###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 no…
  ##+js(trusted-replace-xhr-response, '/"adPlacements.*?([A-Z]"\}|…
  ##+js(trusted-replace-xhr-response, /"adPlacements.*?("adSlots"|…
  ##+js(trusted-replace-fetch-response, '"adPlacements"', '"no_ads…
  ##+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', p…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, fe…
  ##+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…

@exiter987 Follow the 1st post please.

Having an issue with uBlock Origin Lite blocking embedded YouTube content on an educational site. Reached out to the site, they believe it's due to uBlock, which I believe I confirmed by disabling the extension and reloading the site, everything worked fine then. Standard YouTube content is fine, it's solely on embedded video.

Without exact websites and steps for us to reproduce, there's nothing we can do.

The website is teachvid.com, all YouTube videos embedded on the site show "An error occurred. Please try again later. (Playback ID: X6yW1VoOU4re_S3r)". If you wait roughly 20 seconds (almost like an ad is playing) then refresh the page, the video will play like normal.

With uBlock Origin Lite disabled, the video loads immediately. If there's more info you need please let me know.

all YouTube videos embedded on the site ... With uBlock Origin Lite disabled, the video loads immediately

I tried this page: https://www.teachvid.com/resource/fS4fL9c31qTfB80fLH6g?v=learn-mode

The video played immediately. I can't reproduce. How did you configure your uBOL?

Image

YT issue, trying to play video: https://www.youtube.com/watch?v=bTXSqLY3SpM&t=1155s

uBlock Origin: 1.63.2
Firefox: 136
filterset (summary):
 network: 147075
 cosmetic: 41582
 scriptlet: 22552
 html: 2321
listset (total-discarded, last-updated):
 default:
  user-filters: 5-0, never
  ublock-filters: 40636-124, 5m Ī”
  ublock-badware: 11656-7, 5m Ī”
  ublock-privacy: 2760-33, 5m Ī”
  ublock-unbreak: 2636-1, 5m Ī”
  ublock-quick-fixes: 259-19, 5m Ī”
  easylist: 70266-199, 5m Ī”
  easyprivacy: 53521-50, 5m Ī”
  urlhaus-1: 29830-0, now
  plowe-0: 3465-931, now
filterset (user): [array of 5 redacted]
trustedset:
 added: [array of 10 redacted]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 79 ms (selfie)
 maxAssetCacheWait: 35 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 16
 network:
  youtube.com: 7
  doubleclick.net: 4
  google.com: 5
 extended:
  ##.ytp-featured-product
  ###player-ads
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##+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…
  ##+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 no…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, fe…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, Re…

@Theletha Can you go to about:addons page (type in URL bar) and screenshot it here?

Image

uBlock Origin: 1.63.2
Firefox: 136
filterset (summary):
 network: 149217
 cosmetic: 48602
 scriptlet: 23138
 html: 2321
listset (total-discarded, last-updated):
 removed:
  user-filters: null
 default:
  ublock-filters: 40564-123, 23m
  ublock-badware: 11626-7, 1h.39m Ī”
  ublock-privacy: 2760-33, 1h.39m Ī”
  ublock-unbreak: 2636-1, 1h.39m Ī”
  ublock-quick-fixes: 259-19, 15m
  easylist: 70304-199, 1h.39m Ī”
  easyprivacy: 53522-50, 1h.39m Ī”
  urlhaus-1: 29965-0, 33m
  plowe-0: 3465-931, 23m
  spa-0: 3476-11, 33m
  spa-1: 6474-255, 23m
filterset (user): [empty]
trustedset:
 added: [array of 1 redacted]
switchRuleset:
 removed:
  no-large-media: behind-the-scene false
  no-csp-reports: * true
hostRuleset:
 removed:
  behind-the-scene * * noop
  behind-the-scene * image noop
  behind-the-scene * 3p noop
  behind-the-scene * inline-script noop
  behind-the-scene * 1p-script noop
  behind-the-scene * 3p-script noop
  behind-the-scene * 3p-frame noop
userSettings:
 advancedUserEnabled: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 934 ms (selfie)
 maxAssetCacheWait: 142 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 4
 network:
  youtube.com: 2
  doubleclick.net: 1
  google.com: 1

Image
Image

i was trying to view this video: https://www.youtube.com/watch?v=eLlJ3qyYG_U

@SM2010Ficial The first line says:

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

The instructions says:

I completely disabled ALL other extensions AND browser's built-in blockers

We don't need a screenshot of uBO from about:addons, we ask for a screenshot of the list of all extensions from about:addons, because we lost trust that people are actually really following the instructions -- as shown in both your screenshots as per toolbar icons in your browser.

A layout update was pushed that makes the for you page not load but disabling the cosmetic filters makes it work again. I provided screenshots to show you what I mean. One of the screenshots has a thing where the playlist thumbnails don't load but that's due to the AdashimaaTube style not being updated to fix this issue as the dev hasn't responded to requests to do so but I use it for other features so it's not a big deal to me. Disabling said filters enlarges the thumbnails on the subscription and other pages so the only workaround is to go to my playlists to access other parts of the site.

Image
Image

Here's my addons screenshots as well:

Image
Image

EDIT: I found out what was causing my issue and it was old filters that were conflicting with what I currently have. This was the one that caused the display issue:

youtube.com###content > .ytd-rich-section-renderer.style-scope

They must've pushed something on their end and now everything looks a lot like how I view YouTube on my TV these days. My brother hasn't gotten the update and still has the prior layout but I'll delete that one just to be safe.

Follow the 1st post please.

Another issue has cropped up today. YouTube pushed an update that caused playable ads to get through and enlarged thumbnails on some videos to pop up on the homepage. They are forcing shorts more and more and now there's two rows on both the homepage and subscriptions page.

Image

Image (This is the same ad but now it obscures a column of the video)

Image (I'm not sure what's behind that crop of videos)

Image

I've done all of the troubleshooting steps like disabling the shields on Brave as well as shutting everything off and this persists and even disabling the custom filters doesn't help. I'm not concerned about the shorts thing as that can be hidden on my end with either a userscript or a custom one that gets rid of them but he'd rather I not do that. To reproduce this issue, go to https://www.youtube.com/ and see if there's a large amount of space when scrolling down as well as playable ads that are large and end up behind a column of videos and see if there's some videos behind others and are larger than they should be.

Here's his troubleshooting information as well as current userscripts:

uBlock Origin: 1.63.2
Chromium: 109
filterset (summary):
 network: 150476
 cosmetic: 37
 scriptlet: 24531
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 68-0, never
  ublock-filters: 40245-11026, 3h.59m Ī”
  ublock-badware: 11620-715, 3h.59m Ī”
  ublock-privacy: 2787-34, 3h.59m Ī”
  ublock-unbreak: 2565-349, 3h.59m Ī”
  ublock-quick-fixes: 233-36, 3h.59m Ī”
  easylist: 69196-30165, 3h.58m Ī”
  easyprivacy: 53538-587, 3h.59m Ī”
  urlhaus-1: 34380-0, 2h.58m
  plowe-0: 3464-0, 12d.18h.26m
filterset (user): [array of 54 redacted]
trustedset:
 added: [array of 45 redacted]
switchRuleset:
 added: [array of 9 redacted]
hostRuleset:
 removed:
  behind-the-scene * * noop
  behind-the-scene * image noop
  behind-the-scene * 3p noop
  behind-the-scene * inline-script noop
  behind-the-scene * 1p-script noop
  behind-the-scene * 3p-script noop
  behind-the-scene * 3p-frame noop
userSettings:
 contextMenuEnabled: false
 ignoreGenericCosmeticFilters: true
 parseAllABPHideFilters: false
 showIconBadge: false
 userFiltersTrusted: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 2430 ms (selfie)
 maxAssetCacheWait: 302 ms
 cacheBackend: indexedDB

uBlock Dev20W Static Filters.txt

@Ziko577 Test again in a new browser profile with only uBO and its default settings. Don't sync anything. Just log in to youtube in the new profile.

I did just that and the ad isn't an ad at all but a new feature called YouTube Playables which essentially allows you to play games in the browser or device of your choice with no ads. Here's what this looks like for an example: https://www.youtube.com/playables

The thumbnails were large and no more than three in a row though sometimes one would end up below there. The shorts are much larger but that's due to me not using the scripts as well as AdashimaaTube and disabling said script didn't resolve the issue at all so I don't know how to deal with that. . The shorts bar also isn't at the top but the middle of the page now. That large page gap is where around 5 of those games would be. I have no idea why they'd do this now of all times as I only heard of this thing today as well as them pushing shorts much harder now.

I also want to let you know on my end that ads are kind of leaking through but not playing and there's multiple reports on Brave's end but nothing's been done and they go back weeks. I just had this happen to me tonight and an update on their end of their shields didn't work. This is with the shields full engaged to aggressive blocking too.

Image

I also want to let you know on my end that ads are kind of leaking through but not playing and there's multiple reports on Brave's end but nothing's been done and they go back weeks. I just had this happen to me tonight and an update on their end of their shields didn't work.

#27415 (comment)

Minor correction on the Playables thing. Apparently, it was discontinued on the 28th of March and somehow I'm guessing that might have caused the breakage today as they're ripping the thing out which is screwing everything up? Yesterday, everything was fine and there was no shorts bar or nothing and now this happened today so this had to be their fault.

ignoreGenericCosmeticFilters: true
parseAllABPHideFilters: false

You modified uBO for the worse, these are keys to ensure cosmetic filtering works.

It was AdashimaaTube after all and
shutting it off fixed the page

@Ziko577 So you were not truthful when you said:

I've done all of the troubleshooting steps like disabling the shields on Brave as well as shutting everything off and this persists and even disabling the custom filters doesn't help.

Because we always ask to disable ALL other extensions before testing.

Please respect volunteers time.

Hey, I've noticed that YouTube has started to buffer until the ads has finished playing (if i can't skip it otherwise it'll buffer for 5secs)

Here is a video of the problem

2025-04-20.15-38-16.mp4

I can provide cookies if needed

@Aztup Can you send cookie to the email at #27415 (comment) ?

Sent lmk if you can't reproduce it

We know your report is reliable, but as a rule, we can't exempt only you about providing Troubleshooting info.

Fair enough here it is

uBlock Origin: 1.62.0
Chromium: 135
filterset (summary):
 network: 163275
 cosmetic: 47231
 scriptlet: 24856
 html: 0
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40332-112, 2h.56m Ī”
  ublock-badware: 11627-7, 2h.56m Ī”
  ublock-privacy: 2765-3, 2h.56m Ī”
  ublock-unbreak: 2566-2, 2h.56m Ī”
  ublock-quick-fixes: 289-7, 2h.56m Ī”
  easylist: 69063-580, 2h.56m Ī”
  easyprivacy: 53955-779, 2h.56m Ī”
  urlhaus-1: 34595-0, 2h.56m
  plowe-0: 3455-0, 12d.15h.31m
  FRA-0: 18748-145, 1d.4h.19m
filterset (user): [empty]
userSettings:
 userFiltersTrusted: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 258 ms (selfie)
 maxAssetCacheWait: 92 ms
 cacheBackend: indexedDB

Thanks for cooperation.

@Aztup You have other extensions enabled, including Tampermonkey with 4 user scripts being injected in the page.

Image

The issue still happen if I disable all my extensions but I agree that the video I should have taken should've been without any extensions so I've updated it.

@Aztup Can you test these filters:

www.youtube.com#@#+js(json-prune-fetch-response, playerAds adPlacements adSlots no_ads playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots playerResponse.no_ads [].playerResponse.adPlacements [].playerResponse.playerAds [].playerResponse.adSlots [].playerResponse.no_ads, '', propsToMatch, /player\?|get_watch|^\W+$/)

www.youtube.com##+js(json-prune-fetch-response, playerAds adPlacements adSlots no_ads playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots playerResponse.no_ads [].playerResponse.adPlacements [].playerResponse.playerAds [].playerResponse.adSlots [].playerResponse.no_ads, '', propsToMatch, /player\?|get_watch/)

Issue still happen @stephenhawk8054 did you manage to reproduce the issue?

Yes, we can reproduce. @stephenhawk8054 Yours works on my end too.

@Aztup Yeah, I can reproduce, but it disappears after I apply the above filters.

Hmm... Even when I don't use the above filters, I can't reproduce any more. The issue just disappears although I still see the scriptlets pruning the ads.

I was about to say maybe it's a fluke? If you play an actual ad YouTube will no longer serve you ad for a while so the issue will disappear temporarily

You can either wait or I can give you new cookies

Yours works on my end too.

Maybe I was too hasty. Looks I just entered a period that I can't get ads. BTW this happens on initial load too. AdGuard is also affected.

@Aztup Keep the above 2 filters, can you continue adding this one:

www.youtube.com#@#+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', /^\W+$/)

Still happens

Still happens

www.youtube.com##+js(json-prune-fetch-response, playerAds adPlacements adSlots no_ads playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots playerResponse.no_ads [].playerResponse.adPlacements [].playerResponse.playerAds [].playerResponse.adSlots [].playerResponse.no_ads, '', propsToMatch, /player\?|get_watch/) alone is enough to reporduce on click.

I think it might be worth looking at /videoplayback a request is being made but only return 128bytes I assume it tells the client to wait x amt of time before retrying

First request: Image

Second request: Image

But its response is binary. I don't see obvious difference in parameters on them.

On a normal request the first videoplayback is a few kb but on this one it's always 128bytes

I did some digging, and I think I’ve figured out what’s causing it. I was kind of right—
The first request basically tells the client to wait x amount of time, and that value is determined by this line of code:

Image

I tried setting backOffTimeMs to 0 or 1000, but turns out that’s checked on the server :(

The only possible fixes I can think of are:

  • Prefetching a random video in the background and make YouTube think that the ad has been watched
  • Using the preview video endpoint

It’s definitely a bit trickier than before, so… good luck with that šŸ˜…

Hope this helps!

Im having a problem with Youtube Music, Every time I listen to a song every 15 or so seconds it stops, reloads, then continues.
I think this is happening everytime an ad is played but I don't have this problem in Youtube

if you need a Vid ill give, but I didn't think it was necessary

uBlock Origin: 1.63.2
Firefox: 136
filterset (summary):
 network: 151793
 cosmetic: 41542
 scriptlet: 22788
 html: 2323
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40672-109, now
  ublock-badware: 11678-7, now
  ublock-privacy: 2737-3, now
  ublock-unbreak: 2624-1, now
  ublock-quick-fixes: 381-14, 1h.18m
  easylist: 69877-201, now
  easyprivacy: 53993-50, now
  urlhaus-1: 34485-0, 1h.23m
  plowe-0: 3447-924, 1h.23m
filterset (user): [empty]
hostRuleset:
 added: [array of 11 redacted]
userSettings:
 advancedUserEnabled: true
hiddenSettings: [none]
supportStats:
 allReadyAfter: 3734 ms (selfie)
 maxAssetCacheWait: 385 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 389
 network:
  youtube.com: 274
  doubleclick.net: 4
  ggpht.com: 3
  google.com: 58
  googletagmanager.com: 1
  jnn-pa.googleapis.com: 5
  ytimg.com: 44
 extended:
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##+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, playerResponse.adPlacements playerResponse.pla…
  ##+js(json-prune-fetch-response, reelWatchSequenceResponse.entri…

Test again in a new Firefox profile with only uBO and its default settings. Don't sync anything.

i already did, same problem.
Should i do it again

In your new profile (with uBO default settings), open new tab > reproduce the issue and on that page > click on uBO icon > šŸ’¬ Report button > scroll to the bottom > click on Troubleshooting Information and copy paste it here

uBlock Origin: 1.63.2
Firefox: 136
filterset (summary):
 network: 150607
 cosmetic: 41539
 scriptlet: 22788
 html: 2323
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40672-262, now Ī”
  ublock-badware: 11672-37, 1h.45m
  ublock-privacy: 2737-5, 1h.45m
  ublock-unbreak: 2624-16, 1h.45m
  ublock-quick-fixes: 381-2, now Ī”
  easylist: 69853-12, now Ī”
  easyprivacy: 53993-50, now Ī”
  urlhaus-1: 33325-0, 1h.45m
  plowe-0: 3447-924, 1h.45m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 1064 ms (selfie)
 maxAssetCacheWait: 308 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 38
 network:
  youtube.com: 29
  doubleclick.net: 2
  google.com: 6
  googletagmanager.com: 1
 extended:
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##+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, playerResponse.adPlacements playerResponse.pla…
  ##+js(json-prune-fetch-response, reelWatchSequenceResponse.entri…

Are you signing in to the site in the new profile?

no, should i?

@Grogugamer20 Which exact video link do you see the issue?

Everything on Youtube Music

I loaded https://music.youtube.com/watch?v=aiOzlKB2N4M&list=LM and the link plays normally for me.

YT is blocking me again, uBlock is showing me a message that blocking ads is against ToS, etc.
I tried it on a new browser profile and logged in with the same account I use, but I didn't get the pop-up, but the videos load slowly.
Im using Brave Browser
Brave Shield are disabled.
Link to the example video where this occurring: https://www.youtube.com/watch?v=fQrDDeYTR_s

Image

uBlock Origin: 1.63.2
Chromium: 135
filterset (summary):
network: 151732
cosmetic: 41533
scriptlet: 24759
html: 0
listset (total-discarded, last-updated):
removed:
POL-0: null
POL-3: null
default:
user-filters: 0-0, never
ublock-filters: 40410-332, 1h.11m Ī”
ublock-badware: 11678-7, 1h.11m Ī”
ublock-privacy: 2758-3, 1h.11m Ī”
ublock-unbreak: 2566-1, 1h.11m Ī”
ublock-quick-fixes: 368-2, 2h.11m
easylist: 69853-426, 1h.11m Ī”
easyprivacy: 54007-583, 1h.11m Ī”
urlhaus-1: 34430-0, 2h.13m
plowe-0: 3447-0, 2h.13m
filterset (user): [empty]
trustedset:
added: [array of 11 redacted]
userSettings:
suspendUntilListsAreLoaded: true
hiddenSettings: [none]
supportStats:
allReadyAfter: 890 ms (selfie)
maxAssetCacheWait: 509 ms
cacheBackend: indexedDB
popupPanel:
blocked: 42
network:
youtube.com: 28
doubleclick.net: 4
google.com: 10
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(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 no…
##+js(trusted-replace-xhr-response, '/"adPlacements.*?([A-Z]"\}|…
##+js(trusted-replace-xhr-response, /"adPlacements.*?("adSlots"|…
##+js(trusted-replace-fetch-response, '"adPlacements"', '"no_ads…
##+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', p…
##+js(trusted-replace-fetch-response, '"adSlots"', '"no_ads"', /…
##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, fe…
##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, Re…
##+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…

trustedset:
added: [array of 11 redacted]

What are these? Did you follow the 1st post?

So i received the "Please disable ad-blocker" thing on Youtube again (Using Firefox and uBlock Origin). I resolved this issue by following the steps in the guide on this page e.g: Create new profile on 'about:profiles' -> Launch in new window -> install uBlock Origin addon (and Nothing else) -> go to youtube -> video plays without any problems.

"Awesome" or so i thought. .

I proceeded to log into my youtube account but now ANY video on youtube takes ~15 seconds to load, i tried recreating this multiple times each with the same result, I even tried re-installing Firefox, but the problem still persists :(

Troubleshooting Information
uBlock Origin: 1.63.2
Firefox: 137
filterset (summary):
 network: 151757
 cosmetic: 41544
 scriptlet: 22791
 html: 2323
listset (total-discarded, last-updated):
 default:
  user-filters: 0-0, never
  ublock-filters: 40675-109, now
  ublock-badware: 11678-7, 1m
  ublock-privacy: 2739-3, 1m
  ublock-unbreak: 2624-1, 1m
  ublock-quick-fixes: 381-14, 1m
  easylist: 69896-201, 1m
  easyprivacy: 53993-50, 1m
  urlhaus-1: 34430-0, 1m
  plowe-0: 3447-924, 1m
filterset (user): [empty]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 1852 ms
 maxAssetCacheWait: 161 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 17
 network:
  youtube.com: 8
  doubleclick.net: 3
  google.com: 6
 extended:
  ##.ytp-featured-product
  ###player-ads
  ##.ytp-suggested-action > button.ytp-suggested-action-badge
  ##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, reelWatchSequenceResponse.entri…
  ##+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 no…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, fe…
  ##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, Re…

trustedset:
added: [array of 11 redacted]

What are these? Did you follow the 1st post?

@Yuki2718 The post was edited to include the correct information.

I proceeded to log into my youtube account but now ANY video on youtube takes ~15 seconds to load, i tried recreating this multiple times each with the same result

So do you still see anti-adb message in the new profile?

@stephenhawk8054

Image
This checks if an ad is meant to be played according to the sabr response, and compares it with adSlots.
If they don't match it trigger a warning.

Also, this flag is tied to the slow video loading that I reported the other day

I proceeded to log into my youtube account but now ANY video on youtube takes ~15 seconds to load, i tried recreating this multiple times each with the same result

So do you still see anti-adb message in the new profile?

No, the anti-adb messages don't show up, so that part is working.

The problem that still persists is the slow loading of videos :)

I noticed that by de-activating uBo, Refreshing page and playing 1s of the ad presented, then activating uBo again (and refreshing the page) gets rid of the ads at least occasionally.

Will need more detailed research on success rate.

@Aztup Can you share your experimental flags on your side?

copy(yt.config_.EXPERIMENT_FLAGS)
copy(ytcfg.data_.WEB_PLAYER_CONTEXT_CONFIGS.WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH.serializedExperimentFlags)

compares it with adSlots.

@Aztup Sorry, where did you see that compare?

Image

Hmm... That behaves the same in a profile that doesn't have issue for me or when not logging in.

My current toggle it off and on again seems to be pretty stably working

Usual record is: Video on (doesn't work yet), uBO off & refresh, tap ad and stop, uBo on again & refresh, uBo off & refresh
Enjoy Video

I usually re-apply my uBlock Origin while I watch desired content, but do not re-refresh.

There might be room for optimizing a step

@Aztup I encountered the same problem as you . Enabling uBlock Origin requires a 5-second wait for the video to play. After testing, I changed my browser, PC, and network environment, and finally found that Changing to another YouTube account will not result in a 5-second black screen in the same environment. It should be due to YouTube's 5-second penalty mechanism for blocking ads for certain accounts. I hope you can find a solution and share it with me.
Image

Hmm... That behaves the same in a profile that doesn't have issue for me or when not logging in.

This function is used in other parts of the code it just check if the player has ads but they combine it with the sabr check wdym it behaves the same?

I mean they all return false at that line (aka the condition inside if is always true), regardless of which profile.

Even with uBO turned off?

No, I mean comparing between 2 profiles that both have uBO:

  • One that has the issue as described,
  • One doesn't have that issue (easiest way to test is not log in)

The current goal is to find why there's a difference between these 2 cases, although uBO is active in both cases.

Well if the one that doesn't have the issue is not logged in it's just A/B testing no? That's the only difference I can think of

Yes, I mean where is the code that differentiates between those 2 cases? I think it's not at that code line, since both of the 2 cases return the same result at that line.

Just to be clear the issue I'm talking about is the adblock detection not the 5sec loading time.

The code line I sent is one of the checks but this is not the full check this one is

Looks like I messed up the links sorry

Also, the adblock detection depends on the 5sec loading time (atleast during my tests) but the 5sec loading time does not depends on the adblock detection.