Could you make the alternate CSS-styles sticky, so they apply to the whole domain, for the session?
Now only the option "View-menu --> Page Style --> No Style" is sticky: once selected, it is active on that whole domain for that session, until we select another style. This is what I would expect.
However, this does not work for alternate styles: the alternate style is lost on each reload or when going to the next page of that site. So it needss to be manually selected again and again. A bit cumbersome.
Is it possible to make the behaviour for alternate styles the same as for the No-style option, thus sticky for the session? This is a user-interface issue, similar to resizing text, so it should be handled on that user-interface level, I think.
Thanks.
Make Alternate CSS-style sticky
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
-
- Fanatic
- Posts: 125
- Joined: 2016-12-04, 22:01
Re: Make Alternate CSS-style sticky
Just use Stylem add-on.
Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!
-
- Pale Moon guru
- Posts: 37756
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Make Alternate CSS-style sticky
You can blame the powers-that-be for a behaviour change in that respect, as controlling it via content scripts was deemed more important than having a UI option, and they were incompatible to have concurrently. As a result, the UI option will "forget" any custom styles that might have been enumerated on navigation. It's not really possible to make that "stick" with the current resulting spec.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Moongazer
- Posts: 9
- Joined: 2023-01-30, 13:48
Re: Make Alternate CSS-style sticky
Thanks for the quick answers, I appreciate it.
A technical question: in which way is the "Alternate style" different from the "No Style" option that *is* remembered throughout the session? Couldn't the same mechanism be re-used? If a developer uses other mechanisms to apply styles (e.g. javascript and variables or cookies on every page), they would override it anyway, I guess? Or do I see that wrong? (I am no programmer, I only have very basic knowledge about software.)
An Add-on would be great if it was only for my own comfort, but I can't expect others to use it on my website. I wanted a cookie-free and javascript-free website, because of both my aversion against them, and my lack of knowledge in these fields. I can do basic HTML and CSS, and simple static sites, but that is about it (for example see: "www.interthk.be", which was for courses for Flemish dentists, but now only an archive-site and test-site). As a technician, I like things to be simple, especially if I have to maintain and repair them.
A technical question: in which way is the "Alternate style" different from the "No Style" option that *is* remembered throughout the session? Couldn't the same mechanism be re-used? If a developer uses other mechanisms to apply styles (e.g. javascript and variables or cookies on every page), they would override it anyway, I guess? Or do I see that wrong? (I am no programmer, I only have very basic knowledge about software.)
An Add-on would be great if it was only for my own comfort, but I can't expect others to use it on my website. I wanted a cookie-free and javascript-free website, because of both my aversion against them, and my lack of knowledge in these fields. I can do basic HTML and CSS, and simple static sites, but that is about it (for example see: "www.interthk.be", which was for courses for Flemish dentists, but now only an archive-site and test-site). As a technician, I like things to be simple, especially if I have to maintain and repair them.

-
- Pale Moon guru
- Posts: 37756
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Make Alternate CSS-style sticky
"No style" is internal to the browser and always present, so that's always a valid option. Alternate styles will have to be enumerated upon load and are not remembered.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Board Warrior
- Posts: 1107
- Joined: 2021-01-26, 11:18
Re: Make Alternate CSS-style sticky
Alternative Style: Working With Alternate Style Sheets
by Paul Sowden
November 02, 2001
https://alistapart.com/article/alternate/
by Paul Sowden
November 02, 2001
https://alistapart.com/article/alternate/
-
- Board Warrior
- Posts: 1107
- Joined: 2021-01-26, 11:18