I feel it would be convenient to make theme changing faster
If I'm the weirdo in the minority here, feel free to let me know, but I ideally switch between day and night modes almost daily on my websites and apps based on time of day. Here, it's usually between the White and Black settings. And while it's not a big problem by any means, navigating between 3 different pages (the homepage, my user page, then settings) is a tiny hassle that I feel could be avoided by placing the theme switching option on the homepage. I don't know if my usage of themes is normal or an abnormality, so I understand if putting it directly on the homepage isn't ideal if most users don't switch themes constantly. It would still be a fair bit faster if it were to be placed on the profile page somewhat similar to Reddit or YouTube (I'm not talking about the overlay, just moving the switcher from settings to maybe part of the User Menu).
I have noticed that most apps with a dark mode tend to bury it in settings, clearly indicating that it's designed to be a one time change, so again, maybe this is just a me problem, but I am curious on how others feel about a more easily on hand theme option.
These bookmarklets will set the theme and then load the homepage. You can bookmark them and use them as you like (though they may not work as intended when opening into a new tab).
EDIT: I'm having trouble with the link formatting so I'm just printing them here. You can copy-paste the code into your bookmark manager as if it's a URL.
javascript:(function() { document.cookie = "theme=white;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
javascript:(function() { document.cookie = "theme=light;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
javascript:(function() { document.cookie = "theme=dark;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
javascript:(function() { document.cookie = "theme=dracula;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
javascript:(function() { document.cookie = "theme=atom-one-dark;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
javascript:(function() { document.cookie = "theme=black;path=%2F;domain=tildes.net;secure";document.location='https://tildes.net';})()
With a little more effort two bookmarklets could be combined into one that toggles between the two themes you want.
This is perfect for my desktop use, thanks!
just a heads up, instead of
document.location=
you should uselocation.assign()
I'm curious, what's the difference?
Most browsers will accept it but its a type mismatch and is better for error checking when using the function.
Thanks for the tip!
Here's a full script to add the form to the bottom of the page like when you're signed out:
I don't know how to make it work with greasemonkey, but if someone wants to do that we'd have a complete solution.
Edit: Maybe someone can add this to the "Tildes Extended" extension.
Logged-out users can switch the theme from any page using a dropdown in the footer (you can log out and look, or load the site in an incognito window if you want to see what it's like). I could probably make that available for logged-in users as well, but I figured it wouldn't be useful the large majority of the time.
Perhaps on option in the settings to enable the dropdown?
I would definitely appreciate it. That looks like a great solution to me, doesn't seem like it would be obstructive to the people who don't need it.
One data point: I use the default theme, have never changed it, and appreciate the option to change them where it is, in the settings. If the three clicks to get to the setting bothers you, why not bookmark the settings page? Then the option is only one click away.
This is exactly what I've started doing recently, and it works well enough on my desktop, but doing anything with bookmarks on mobile is more cumbersome than just changing it within the site every time.
You might find the
StylishStylus extension useful. It allows you to set (and search) custom CSS themes based on the website. I often find myself writing or modifying existing themes to tune them in ways I like.Ah shit sorry stylus is the one I have I switched from stylish. Good call.