Skip to content

Feasibility of porting Stylus to Manifest v3? #1761

Answered by tophf
chocmake asked this question in Q&A
Discussion options

You must be logged in to vote

The only affected features are Instant inject mode and Patch CSP to allow style assets. There are no good workarounds yet, which is why I don't rush the migration. The migration itself isn't complicated.

There'll be also an annoyance with handling .user.css redirection to install the styles. In ManifestV3 we can't use webRequestBlocking to redirect it to our page, so the only way to do it in the same seamless fashion would be to use declarativeNetRequest + web_accessible_resources, which I'm reluctant to use as it makes the extension detectable even on sites that aren't styled. On the other hand, it's not really a big deal generally since we expose our styles in DOM on affected pages, so …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@dazzletune
Comment options

@tophf
Comment options

tophf May 11, 2024
Collaborator

@dazzletune
Comment options

Answer selected by chocmake
Comment options

You must be logged in to vote
2 replies
@tophf
Comment options

tophf Oct 17, 2024
Collaborator

@rvcjew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants