> John J Foerch <[email protected]> writes:
>
>>> John J Foerch <[email protected]> writes:
>>>> Can you give me an example of a site that exposes this problem?  There
>>>> are a couple of ways to go about solving it, but I would like to see the
>>>> problem in action to narrow down the possibilities.
>>>
>>> So the way that I ran into this issue is fairly contorted.
>>>
>>> I like dark backgrounds and light text (and they save laptop battery
>>> power, etc...), and I had some time to kill so I installed the Firefox
>>> stylish add-on [1], and then installed some views to make google default
>>> to a dark background and a light text [2].  It is on this tweaked google
>>> view that the problem really became apparent, but I assume that it would
>>> be an issue for any website which has a light link text color.
>>>
>>> Thanks -- Eric
>>>   
>>> [1] https://addons.mozilla.org/en-US/firefox/addon/2108
>>> [2] http://userstyles.org/styles/1693
>>
>> Can you take a screenshot?
>
> yup, here it is
> http://picasaweb.google.com/lh/photo/l63zZVBtguIGmXkm3OKT8Q?feat=directlink

Hi Eric,

  An initial implementation is now in conkeror to assist in overriding
site css.  I'm sure that as we use it over time, we'll get ideas as to
how it can be made better.  To use it for the dark-themed google,
disable Stylish, put the dark-google.css stylesheet somewhere on your
computer, and put the following in your rc:

// re-style google
require('selectively-unstyle.js');

let (google = build_url_regex(
         $domain = "google",
         $allow_www = true,
         $tlds = ["com", "co.uk", "de", "dk", "es",
                  "fr", "it", "no", "se", "uk"])) {
    selectively_unstyle_alist.push([google, function (sheet) { sheet.disabled = 
true; }]);
};

register_agent_stylesheet("file:///path/to/dark-google.css");



  The first thing you might notice is that because we disabled Google's
stylesheet, some important style rules no longer exist, because they are
not in the dark-google sheet from Stylish.  The most straight-forward
way to solve this problem is probably to create a new stylesheet from
scratch, based on google's that is a complete replacement sheet.

  But you will also notice that white-on-white text is no longer a
problem, so I think we have made a little step of progress here.

-- 
John Foerch

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to