hunterirving / macproxy_plus

browse the modern web on vintage computers
BSD 3-Clause "New" or "Revised" License
121 stars 4 forks source link

Disable Proxy for 'whitelisted' domains #1

Open jipvankuijk opened 3 weeks ago

jipvankuijk commented 3 weeks ago

Hey there,

It would be great if there is an extension, that allows a list of domains to not be altered by the proxy, beside maybe https>http.

I have macintosh.jipvankuijk.com which already shows perfectly on older browsers, and via the proxy looks worse as an example.

Cheers.

hunterirving commented 3 weeks ago

Hey there, thanks for checking out the project.

What computer and browser are you using? I've been using MacWeb 2.0, which doesn't have CSS support, so currently MPP strips all CSS from all pages. This could be what's causing your site to look worse. If it is just a CSS issue, the change should be fairly straightforward. Would a boolean flag in config.py that globally allows/disallows CSS stripping solve the issue for you?

Images of the expected rendering and the actual rendering might be helpful for debugging. And if your vintage browser has a way to view a page's source, before and after images of the HTML the browser is receiving might also be helpful.

jipvankuijk commented 3 weeks ago

Hey!

I'm using a Macintosh Plus, and Macintosh SE running System 7.0 both with MacWeb 2.1, these indeed don't support CSS and they work fine.

On my SE/30 however I can use Internet Explorer 3.1 or iCab 2.9.9. These browsers do support, in a limited fashion CSS and inline images etc.

I've already added a piece of code that adds CSS code inline for images to set the max width to 480 pixels, and reduced the image conversion script to match 480 width and 300 height.

But it would be nice to have a way to have a list in proxy.py or in an extension that can be used as a whitelist, where the proxy does not do anything to the html code, no css removal etc, and only run the image processing(if possible).

Maybe the flag to enable or disable CSS stripping would be a great start.