Add a custom class to <plasmo-csui>
I find myself needing to add
class="ytp-button"
to the <plasmo-csui>
so that the element shows correctly where it's injected
With Svelte, of course77 Replies
Is there a way to do it without
I think that's the case yeah :d... Maybe we should think of a better API?
Well I do find myself needing to inject/display it when conditions are met, e.g. the ext is enabled
AKA take a full advantage of Svelte in the CSUI's container
Mhmm
At the compiler level and framework level, how should we implement this feature :-?
Otherwise I could technically do it in a regular CS script, but using Svelte is always more convenient 🙃
No idea 😄
YouTube Watch Time Counter
Counts the total time you watch videos on YouTube.
I believe it has a great potential to become a popular extension, 100x better than it is now
I haven't fully decided on the UI, but this is the latest screenshot of a certain section
![](https://utfs.io/f/0a2c06fc-4a0e-4f48-af22-1c050f06b15c-1nq2cb.png)
I need some idea to improve it cuz.... I don't use Svelte xDddddd
Imagine if the following will be
<plasmo-csui>
:
that's not working atm??
That cannot work
I need the
<div>
to be in the top level
Or else it will look just wrongwait I thought by this you mean the mountShadowHost is working atm?
Or is the
ytwt
element right now not being mounted in the right place?I made it work with a workaround
But the interactivity will probably break
The CSS is injected with a content script that injects the styling
the getStyle is not working??