[Privoxy-users] Help with setting background image
Lee
ler762 at gmail.com
Tue Aug 24 14:14:39 UTC 2021
On 8/23/21, sugarcoded at tutanota.com <sugarcoded at tutanota.com> wrote:
> Im new to this so I apologize if I do something wrong. I'm struggling to
> figure out how to set a custom background image on my custom template files
> using CSS. I'm using "background-image: url(img.png);" in the CSS file.
I thought there was a wishlist item to allow privoxy to serve up
arbitrary files. I can't find anything like that on the TODO list tho
:(
But the user-manual includes images, so you can abuse the user-manual
config directive to serve images from
http://config.privoxy.org/user-manual/
1. /etc/privoxy/config needs to have user-manual configured - eg
user-manual /usr/share/doc/privoxy/user-manual
which then allows you to serve up images from
http://config.privoxy.org/user-manual/
2. To change all pages, add your background css directive to
/etc/privoxy/templates/cgi-style.css
I did
/*
* General rules: Font, Color, Headings, Margins, Links
*/
body,td,th { font-family: arial, helvetica, helv, sans-serif; }
body { background-color: #ffffff; color: #000000; }
/* LR test: include arbitrary image */ body { background-image:
url(//config.privoxy.org/user-manual/windows-eyes.gif); }
3. Add your background image to wherever the user manual is kept. For me it's
/usr/share/doc/privoxy/user-manual/
And almost none of the background image shows through - but hopefully
you can work around that.
Regards
Lee
More information about the Privoxy-users
mailing list