>   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.


Oops, I forgot to mention that it is necessary to remove the uses of
!important from the dark-google css.

--John

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

Reply via email to