Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Improve hide-in-shadow-dom scriptlet to support `>>>` and ExtCSS

Open piquark6046 opened this issue 1 year ago • 1 comments

https://github.com/AdguardTeam/AdguardFilters/issues/195191

To improve targeting an element, I think that we need to support >>> syntax of trusted-click-element and Extended CSS to hide-in-shadow-dom scriptlet.

Screenshot

image

piquark6046 avatar Jan 15 '25 13:01 piquark6046

I think that for apps.microsoft.com case we can use rather safely a rule like this:

apps.microsoft.com#%#//scriptlet('hide-in-shadow-dom', 'buy-box[telemetry-area-id="CtaButton"][telemetry-data*="buttonType"][telemetry-data*="share"]')

It hides "Share" button (it seems that it's not displayed on Windows, so changing user-agent might be required) and it doesn't hide a download button.

But of course improving the scriptlet might be useful.

AdamWr avatar Jan 15 '25 13:01 AdamWr