cswendrowski / FoundryVTT-Custom-CSS

Allows a user to setup custom CSS rules in a FoundryVTT world
GNU General Public License v3.0
11 stars 9 forks source link

Enhancement: Render Global Styles on Join page #19

Closed TheGreatRedDuke closed 1 year ago

TheGreatRedDuke commented 1 year ago

It would be lovely if this module could be enhanced so that any Global CSS styles that are set are not only injected into the domain.com/game pages when playing, but also into the domain.com/join page where users sign-in to the game.

This would allow for very easy custom login pages per game world without having to edit CSS files on the server directly.

Regardless, thanks for the great module!

zeel01 commented 1 year ago

This is unfortunately not actually possible at this time, or likely ever. For security reasons, Foundry only loads modules in /game and /stream but not in /join or any of the setup pages. This sort of feature has been requested a lot, but ultimately Foundry feels that the potential security issues are just too big to allow it.

That means the only way to modify these pages is by editing server files, or using a browser extension (on every client).

If we could do it, I absolutely would add this feature. But it is sadly not possible.

TheGreatRedDuke commented 1 year ago

Awwh, that's a bummer, but I understand. Thanks for letting me know!