One of the things that has always annoyed me about web sites is that they use whatever color scheme they feel like, without consideration for potential eye strain, or the time of day or lighting where the person is viewing the site.
Normally, I get partially around this through the use of global CSS style changes to force a basic color scheme. But this doesn't address the problem fully. While I can make reasonably workable color schemes that are easy on the eyes, and usable both in bright light and low light, I would like something a little more dynamic. With that in mind, I'd like to write a GM script that will get the current system time, and apply CSS styles based on the time, such that at night I can apply darker schemes, during the day, I can apply lighter schemes, and in between I can apply moderate schemes. Before I get into writing such a script, I want to be sure it can actually work the way that I'm thinking. Since many CSS elements are best identified by name, type, id, etc. and would be given by their actual element name/type/id/etc included in quotes (such as: input[type="radio"]), I need to know how the GM_addStyle function handles quotes within the string. So my question is this: If I were to use the GM_addStyle function to try and add a style using quotes within the string, would it handle it correctly? Does the function correctly handle the escape character, such that \" would be correctly interpreted as part of the string, rather than the " being regarded as the end of the string? The wiki article isn't clear on this point. Thanks, Drake Phoenix -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
