Scriptlets
Scriptlets copied to clipboard
Improve hide-in-shadow-dom scriptlet to support `>>>` and ExtCSS
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
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.