A function to inject custom css into a webpage would be really nice, as it eliminates the need for extensions (e.g. Stylus) to inject custom CSS to for example globally change the font, make a dark mode for a certain website, etc.
User styles/Custom CSS Injector
BomberFish Please provide full specification for the feature. How would this work inside Orion?
Check out https://orionfeedback.org/d/1235-custom-style-sheet.
This is how you can do it on Safari.
Vlad I've come up with an idea or two, and I made an outline of the feature in MS Paint.
This is way too coplex in my opinionion. This requires bundling an editor into Orion, as well as a lot of other features. Having a preference for a custom CSS, as safari does is a much better option in my opinion.
Combining this with the concept of a Reader Mode would be great.
Try and extract standard tags from webpages, and have custom user styles for those tags.
- Edited
Not to hijack the thread, however, there is a great Chrome extension that would suit this purpose perfectly. If Orion could support it - or if the extension could support Orion - not sure which it should be? Currently a quick test of the extension results in failure to properly work.
https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne
The Stylus extension does this also, but it doesn't seem to work on Orion.
Two potential mockups regarding this feature. Although the mockup does not contain a spot for user css, it could easily be added within the style menu.
Previously posted by @Vlad
LoraFriedenthal idk, stylus works for me
- Edited
There was a discussion about this in the Discord.
https://discord.com/channels/802933355603034132/900847457347469322/1028312767339442277
basically, the idea is to do something like this: https://luciopaiva.com/witchcraft/
eirk Well, ok. Maybe it doesn't work specifically on Mastodon instances, then.
- Edited
In Safari, in preferences under the advanced category, there is the option to have a custom style sheet (css).
I also hope that Orion can add the styel sheet feature.
Yes please because all the addon's just don't work and Safari Style Sheet is broken-refuses to acknowledge font even with '!important' enforcement.
Any news on this? Would love to avoid plugins like Stylus, which don't work very well.