Is there a way to change styles found in a shadow element? Specifically, extend/overwrite some properties found in a css class? I am using a chrome-extension called Beanote which hasn't been updated since April(2017) and there's a pesky bug I'd like to fix. I found that one line of css patches it up enough for me, but I am at a loss at applying it without going inside of the shadow element itself and directly editing those styles in the dev tools.
I'm looking for a way for this:
/*global css rule*/
.the-class-name { property-name: my-value; }
to overwrite this:
/* style tag inside the shadow-root */
.the-class-name { property-name: bad-value; }
Most of the resources I've found online with queries involving shadow-root override style
or edit shadow-root styling
had something to do with :host
which, if its meant for this, doesn't work for my needs or deprecated functionality like ::shadow
.
anonymous/tamper_monkey_beanote_patch.js
. – Waldman