Re: [dev] [surf] [PATCH] add per-site user styles

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Mon, 17 Nov 2014 11:32:44 +0000

Quoth Nick:
> Quoth Markus Teich:
> > since the css domain selectors do not work in webkit, another approach needs to
> > be taken to support custom css for specific sites. In config.h there is now a
> > list of regexes and corresponding css filenames. When a page is loaded and
> > userstyles are active, the first entry that matches the uri is used as
> > user-stylesheet-uri. The old static stylesheet is removed but can still be used
> > by installing a default rule matching any site at the end of the list.
>
> Great, I'm glad to see this, thanks for it. The opera inspired
> browser hiro posted to the list reminded me of this functionality,
> actually, and it's a good step towards more general customisable
> settings per website (e.g. cookies, javascript), as Christoph
> suggested a while ago.

One question should be whether these site-specific customisations
should be compiled in or read as a configuration file. I suppose it
depends whether people are often finding new websites that they want
to set the behaviour of, or they stick to just a limited list.

I have a slight preference for a separate configuration file that is
read at runtime, as I think that would be more usable.

Thoughts?

Oh, btw, that related email of Christoph's I referenced earlier is
this one: http://lists.suckless.org/dev/1401/19852.html
Received on Mon Nov 17 2014 - 12:32:44 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 17 2014 - 12:36:09 CET