openstyles/stylus

[Bug] can't load a discord theme with stylus as of today.

comfortablemilk4454 opened this issue · 2 comments

Bug Report

Bug Description

im having trouble using 11pixels' dtm08v2 discord theme with stylus. it wont load, all i see is vanilla discord and no mention of the theme in settings -> info at the very bottom of left hand side, only stuff there is stable 283646 (f0ab68f). tested in new firefox profile with no extensions besides stylus and issue still persists.

Screenshots

heres a ss of my stylus configuration

image

heres a ss of the info at the bottom of the settings page

image

and this is what its supposed to look like with the theme loaded
image

CSS Code

System Information

  • OS: macOS 14.3
  • Browser: Firefox release 124.0.2
  • Stylus Version: 1.5.46

Additional Context

This theme is using @import which is blocked by discord's new Content-Security-Policy. You can remove it and copypaste the contents of the URL instead. You can also suggest the author to use data: instead of image URLs.

Another solution would be to disable Content-Security-Policy for this site using an extension like ModHeaders or enable an option in Stylus to patch this header on all styled sites:
image

ty! patch csp fixed it!