-
Notifications
You must be signed in to change notification settings - Fork 81
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
Ubo Picker broken on MSN.com (Shadow DOM) #2346
Comments
Everything under |
Not sure what the means sir. thinking that it means that it can't be fixed? |
I don't know what can be done at the moment, this will need time for investigating, my first thought is to maybe have something like "Block element in frame…", i.e. "Block element in shadow…", if possible at all. Well "Block element in shadow…" is probably not a good idea, that page uses shadows inside shadows inside shadows... |
ok, if you need any other information please ask. thanks for your quick replies. |
I personally don't use that page often but was trying to help someone on the reddit page and ran across it. |
I use a scriptlet for removing shadowroot nodes - https://github.com/uBlock-user/uBO-Scriptlets/blob/master/scriptlets.js#L3 |
I am already using your scriptlets in advance settings. is there a MSN.com filter I should be using? |
IMO no possible good use rsre ("remove-shadowroot-elem") to safe use element picker. |
Duplicate of #2252 |
This is not invalid as the picker is broken on the MSN site due to the shadow dom issues. If one is unable to use the picker to pick an element to hide, but instead gets a red overlay and unable to select anything that is broken. #2215 is about ads he had blocked showing again and at that time the response was unable to reproduce, and deemed invalid. #803 is a specific filter issue
As stated by Gorhill comment #803 (comment) My issue is that the picker is broken when attempting to make selections on MSN site, due to ShadowDom. |
Perfectly same like in 2215 and uAssets/13052
A cherry picked the first part of the description, the other part ignored, despite the other part is the most important:
Duplicates: the same issues (a broken picker which is highlighting the whole page) caused by the same cause (shadow DOM). |
I'm facing this same problem (in Firefox). ( I have a feeling all the other sites will soon start using the same recipe! ) |
Hard but can be used: gorhill/uBlock@52b46eb I do not recommend yet for #2297 anti-social demo in header: ##fluent-design-system-provider > entry-point:shadow(div[class*="container"]) > me-stripe:shadow(msft-horizontal-card-slider) > me-stripe-tile:shadow(.me-stripe-tile-content) a[href*="facebook.com"] |
@krystian3w is that selector still experimental? I have a custom filter that always worked for enabling picture in picture when websites block it: *##video:remove-attr(disablePictureInPicture) I'm realising that now it doesn't work on Disney+ because they hide it under a shadow-root under a custom element: Any ideas how could I make it work? |
Try:
|
That worked! Had to modify "disablePictureInPicture" to lowercase, weird since I thought I know this is probably bad practice but I generalized the rules to unblock PiP and casting for every website, works for now:
|
From uBO remove-attr documentation :
It seems exactly means really exactly, which means not only the whole attribute name from left to right, but also case sensivity too. But on the other hand, you seem to be right too, from w3c documentation:
Also it has been fixed for set-attr: Anyway, as for now:
|
Enough in Firefox use PiP button in URL bar, then HTML attribute no longer works anywhere (so only Chromium is susceptible). |
Or in Chromium browsers use one of many PIP extensions (I didn't test them). |
Prerequisites
I tried to reproduce the issue when...
Description
using the picker block entire page and unable to select individual items. as seen in animated gif
sorry about the full screen was trying to be complete in the process
Debug info
A specific URL where the issue occurs.
MSN.com
Steps to Reproduce
open msn.com
click the Ubo icon
select picker
attemp to pick item to block
whole page highlights
Expected behavior
should be able to pick any item on page
Actual behavior
Entire page is red and if you click it the picker windows opens and you only get 2 selection
if one is selected it blocks the entire page
uBO version
Dev 1.44.5b21
Browser name and version
Firefox 106.0.2
Operating System and version
Windows 11 Enterprise 22621.755 22H2
The text was updated successfully, but these errors were encountered: