-
Notifications
You must be signed in to change notification settings - Fork 84
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
eBay Sponsored links. Shadow DOM #2297
Comments
Can you capture DOM tree with this shadow element? I don't see them in Firefox and Chrome. Only "Sponsored" text in every list entry, but hidden in non-sponsored offers. |
Also another major service, Facebook has started to use shadow dom: #2280 Text "Sponsoroitu" means "Sponsored" in English. Filters can't identify sponsored posts anymore on Facebook. |
Also I don't found active shadow dom at eBay. Strange is that page fastly dorpped use |
eBay is definitely still using shadow DOM. |
≈30 day ago used When they detect adding it in the "beta" they can become a page similar to "soft98.ir". |
I have a filter that blocks Facebook ads, however the attributes are removed by Facebook. Yet another example as to why we need a straight up |
:remove() is already supported. |
https://github.com/gorhill/uBlock/releases/tag/1.26.0 or this no works on shadow DOM? Or we misunderstood "straight up" as "no implemented at all". |
?? What??? I looked over for documentation and couldn't find it, I could only find issues saying that it wouldn't be added. Oh well. lol |
I don't get how I couldn't find this, I looked for like half an hour. Okay, thank you everyone for letting me know. |
For me, this span: <span aria-hidden="true"><wbr>Sponsored</span> when No shadows in Chrome or Firefox. |
But |
This comment was marked as outdated.
This comment was marked as outdated.
The following filter is a little better, removes some whitespace your filter leaves behind.
but still we need a shadow root operator as soon as possible since this filter is very fragile. I hope gorhill can get to this as soon as he has a free moment. |
The above filter is no longer valid. |
Any update? |
This comment was marked as outdated.
This comment was marked as outdated.
This is maximum of move: |
Ah, no, just random, you can try simply hiding or removing - this part was left from my other attempts. |
Chrome, it's a bit hit or miss. Occasionally it removes just Sponsored. Other times it doesn't remove any. And then other times, it removes everything like: |
Yeah that new filter break this page with chrome. Works or breaks it randomly.,.. None of these are good enough, we just don't have the proper tool to address this issue. |
Maybe filter works good with GNU/Linux fonts. |
You can try setting
Does not work on second page of the results :) |
Modern browsers added https://developer.mozilla.org/en-US/docs/Web/CSS/revert when unset does not exist |
Does anyone have any update on this issue? I am absolutely sick of seeing ads on ebay. We need a proper and permanent solution to this!!! |
I will gladly pay you 100 dollars right now for a proper solution.
Just say the word.
…On Mon, Dec 5, 2022 at 1:42 PM Raymond Hill ***@***.***> wrote:
I asked the paid employees and none of them answered back.
—
Reply to this email directly, view it on GitHub
<#2297 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWVGVCWNGLE35E6EXQJM3EDWLZARJANCNFSM6AAAAAAQXFYOII>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@JSCFORCE try these
Ebay employees are likely watching this thread though |
Clearly I am not doing this for money, so I suggest you fork and contract another developer. |
Github no support direct reply to specific comment in issue - discussion does because is similar to reddit. But notification on reddit works better than gerneric in any Github discussion. Shadow root/dom won't escape us anyway as msn already applies it to every embedded object on the homepage #2215 #2252 #2346. It is enough that the advertising code escapes the possibility of |
|
Add a scriptlet to inject stylesheet into shadow DOM AdguardTeam/Scriptlets#267 |
Still no shadows on my side.
But specific filters work in uBO. ? |
I was speaking about my experience with shadowRoot, not specific to ebay here. |
I can hide borders on MSN.com with generic filter on opened shadow DOM/root:
So scriptlet unlock use long CSS path or for only closed shadow DOM/root? |
Any update on this? I've been using Stylus with approach , but obviously removing the nodes from the tree would be preferable |
Does not work. |
Works under body: https://user-images.githubusercontent.com/35370833/213710303-98c84f4f-13be-407f-be52-a4e289583bb7.png Maybe glitch in |
The actual one I'm using
|
And other entries down below? The whole page is marked red for me.
This one looks OK
|
this filter also works :P
|
That filter does not work for me. |
Sorry that it didn't work for you, it worked for me as you can see in this video. It's possible (likely?) that eBay slightly varies the DOM and CSS values so that this filter is not consistently effective. ebay.mp4 |
But we use 1 line = 1 product. |
I see that in the Can anyone test www.ebay.com##li.s-item a.s-item__link[href]:matches-attr(href="/%3A\w{12}(&.+)?$/"):upward(li.s-item) ? If |
Appears to be working.
|
But how long? |
doesn't work here: sigh, what a mess. |
It's because of the Test www.ebay.com##li.s-item a.s-item__link[href]:matches-attr(href="/%3A\w{12}(&.+)?$/"):upward(li.s-item) This takes care most of the sponsored products except few products at the top in some searches for me. @gwarser idea works for me too www.ebay.com##li.s-item .s-item__detail--primary span[role="text"] > span:matches-css(width: /59\.[5-9]/):upward(li.s-item):remove() But at this point, it just depends on each person's DOM. |
This comment was marked as spam.
This comment was marked as spam.
None of the above still works after eBay's updates. However, window.find can be used to infiltrate closed shadow DOMs - see https://book.hacktricks.xyz/pentesting-web/xss-cross-site-scripting/shadow-dom I created a proof-of-concept that can be used as a userscript to remove eBay sponsored search results: https://gist.github.com/rileyvel/7162ed1049420e68c0913e52d220366b Maybe ublock origin can use this to enforce :has-text filters globally? |
Amazing! Thank you for your detective work and making the script. I can confirm it does indeed work. I would like to subscribe to your newsletter sir! :) |
Please evaluate whether issue can be closed with gorhill/uBlock@52b46eb. |
They can do the creating shadow DOM-s/roots (as childs) in a loop to avoid single exposure. |
Prerequisites
I tried to reproduce the issue when...
Description
eBay uses the shadow DOM to mark certain listings as SPONSORED.
we can't remove them since we can't target the shadow DOM.
Since sites don't get much bigger than this is is time to add support for a :shadow-root(...) operator?
A specific URL where the issue occurs.
https://www.ebay.com/sch/i.html?_from=R40&_nkw=houses&_sacat=0
Steps to Reproduce
Any attempt to target or distinguish the sponsored listings from the normal ones fail.
Expected behavior
Normally removing an ad would be a snap but not when the CSS is hidden from us.
Actual behavior
Can't remove the sponsored ads with uBlock origin in its current form.
uBO version
1.44.4
Browser name and version
Vivaldi 5.4.2753.51
Operating System and version
Windows 10.0.19044.2006
The text was updated successfully, but these errors were encountered: