[Privoxy-users] Help with setting background image (Repost with correct email)
Ian Silvester
iansilvester at fastmail.fm
Wed Aug 25 03:07:04 UTC 2021
Good on you Lee - interesting solution!
On Tue, 24 Aug 2021, at 15:30, sugarcoded at tutanota.com wrote:
> I followed Lee's instructions like this:
>
> 1) I put the images in /usr/share/doc/privoxy/user-manual
> 2) I changed my CSS to properly scale and fit the image:
> background-image:
> url(http://config.privoxy.org/user-manual/gradient.jpg);
> background-repeat: no-repeat;
> background-attachment: fixed;
>
> 3) Reloaded advertisement.com and it works!!!! Screenshots
> here: https://gitlab.com/sugarcoded/privoxy-theme/-/tree/main/share
> (Going to use the second one). Will post once again when the templates
> are fully completed.
>
> Thank you so much everyone!!!!
>
>
>
> Aug 24, 2021, 00:24 by sugarcoded at tutanota.com:
>
> > Ok :( My last hail Mary was this: > https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image> It didn't work so I guess a solid color is good enough for me. :( Thank you for your help!
> >
> > Thank you!
> >
> >
> > Aug 23, 2021, 21:04 by sugarcoded at tutanota.com:
> >
> >> Nope........ :( The error is: "GET >> http://127.0.0.1/etc/privoxy/templates/img.png>> net::ERR_CONNECTION_REFUSED" (I know putting the custom templates there could get removed if there is an update). I also tried using the port number, localhost and even the file:/// protocol. I guess the final answer would be it wont work unless I pull it from a site? I'm guessing just changing some Privoxy code or running a custom script isn't an option either.
> >>
> >> Thank you!
> >>
> >>
> >>
> >> Aug 23, 2021, 17:30 by sugarcoded at tutanota.com:
> >>
> >>> I just made a gitlab with everything. I don't know why I didn't think of this earlier. >>> https://gitlab.com/sugarcoded/privoxy-theme/-/tree/main
> >>>
> >>> Thank you!
> >>>
> >>>
> >>>
> >>> Aug 23, 2021, 16:18 by sugarcoded at tutanota.com:
> >>>
> >>>> New links:
> >>>> LOG: >>>> https://file.re/2021/08/24/logfile/
> >>>> Image: >>>> https://file.re/2021/08/24/error1/
> >>>>
> >>>>
> >>>> Thank you!
> >>>>
> >>>>
> >>>>
> >>>> Aug 23, 2021, 14:17 by sugarcoded at tutanota.com:
> >>>>
> >>>>> Here you go. I did a few refreshes of>>>>> >>>>> advertisement.com <http://advertisement.com>>>>>> >>>>> since I am currently working on the "blocked" page right now.
> >>>>>
> >>>>> LOG: >>>>> https://tmpfiles.org/dl/99544/logfile
> >>>>> Browser console error: >>>>> https://tmpfiles.org/dl/99546/error1.png
> >>>>>
> >>>>> Tell me if the links don't work, the site said it only lasts 2 hrs. I did it this way because of the file size limit.
> >>>>>
> >>>>>
> >>>>> Thank you!
> >>>>>
> >>>>>
> >>>>>
> >>>>> Aug 23, 2021, 10:48 by sugarcoded at tutanota.com:
> >>>>>
> >>>>>> 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. When I run the code on my PC it works perfectly, but when I run it on my privoxy server it tries to call the png from the site that's being blocked. I can share the HTML/template and CSS files if that needed. Any help would be great!
> >>>>>>
> >>>>>> Thank you!
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
>
> _______________________________________________
> Privoxy-users mailing list
> Privoxy-users at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>
More information about the Privoxy-users
mailing list