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

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Wed, 7 Jan 2015 23:17:55 +0100

Heyho,

Christoph Lohmann wrote:
> You are removing the possibility to enforce some userstyle on the com‐
> mandline, which I don’t like.

What would be the usecase? I doubt passing the whole list as args or a file
which then needs to be parsed first is useful. However I can imagine a flag to
override the list and use one specific stylesheet regardless of the site.

> Such a patch should include tools to make the userstyles.org scripts be‐
> ing easily addable to surf. I would need to parse the comments and then
> add it to the .surf/userstyles folder. The question is, if it’s enough
> to handle all of it in the custom javascript file, which won’t work when
> Javascript is turned off or your array in config.h is really needed.

I currently don't need those scripts, just the css is fine for me. I know some
userstyles.org styles have them included, but it might be more complex than my
current approach to support those as well, which is why I have not looked into
it yet.

Currently I only use 4 site specific styles apart from the default one. These 4
I only use because I visit those sites regularly and I could not adapt the
default style to display them nicely without breaking/overloading the default
style. This way of using my patch is a setup-once-and-it's-done thing, but maybe
other users like it more flexible?

--Markus
Received on Wed Jan 07 2015 - 23:17:55 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 07 2015 - 23:24:08 CET