Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

No-white-web-proxy.r

 [1/7] from: arolls:idatam:au at: 21-Dec-2001 21:55


Hello everyone, I am very happy today. I have just made a little web proxy, which I found quite easy to make since I based it on webserver.r in the rebol script library. http://anton.idatam.com.au/rebol/web/no-white-web-proxy.r It essentially just blows away white backgrounds from html pages. At its most brutal, it searches for the oft-occurring string "ffffff" and replaces it with a specified colour, which I have set to be much easier on the eye (well, my eye anyway). Finally I feel comfortable surfing the web ! :-P (And to hell with all those web designers who hardcode their colours.) It also does a bit of ad filtering. I am sure that others have done stuff like this already, and I feel that I should have gotten into this a -long- time ago, as I have been complaining pathetically about it for years. I hope it's useful for others too :) Features that I would like to extend: - send large files a chunk at a time (is it the same as doing a large file copy?) - parse pdf files ? Always white backgrounds! :-U - gui interface for setting up easily, getting help etc. I have some questions on the gui side, though: If I have a window open, and I am waiting for user events as well as web requests, will a possibly lengthy user action (when pushing on a button for example) deny any web requests? I have the feeling that it will cache and block until the action is finished, won't it? (Thinking about actions taking around 1 sec.) And rebol 3.0 will be able to do both asynchronously? Anton.

 [2/7] from: brett::codeconscious::com at: 21-Dec-2001 23:35


> It essentially just blows away white backgrounds from html pages. > At its most brutal, it searches for the oft-occurring string "ffffff" and > replaces it with a specified colour, which I have set to be much easier > on the eye (well, my eye anyway).
Maybe you should just wear your sunnies :)
> Finally I feel comfortable surfing the web ! :-P (And to hell with all > those web designers who hardcode their colours.)
Oops, in this respect I guess my site will have offended you in the past. I intend to do a redesign and I'll attempt to lower the brightness factor as I'm finding it a bit glary too!
> I have some questions on the gui side, though: > If I have a window open, and I am waiting for > user events as well as web requests, will a > possibly lengthy user action (when pushing > on a button for example) deny any web requests?
I suspect this is a problem that Maarten in his Rugby project has tackled so you could have a look there for inspiration. Brett.

 [3/7] from: g:santilli:tiscalinet:it at: 21-Dec-2001 21:36


Hello Anton! On 21-Dic-01, you wrote: AR> - parse pdf files ? Always white backgrounds! :-U That won't be that easy. ;-) (You'd need to handle compressed and encrypted documents, find the right object to modify, and add code to draw a filled box of your peferred color...) Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

 [4/7] from: arolls:idatam:au at: 24-Dec-2001 14:57


Sounds like you know how to do it, Gabriele! I'll just wait for your pdf parsing script to come out then... :) Anton.

 [5/7] from: g:santilli:tiscalinet:it at: 24-Dec-2001 13:11


Hello Anton! On 24-Dic-01, you wrote: AR> Sounds like you know how to do it, Gabriele! AR> I'll just wait for your pdf parsing script to AR> come out then... :) If you do the de-compression and de-cryption (is this the right word?) part... ;-)) BTW, Merry Christmas everyone! Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

 [6/7] from: arolls:idatam:au at: 26-Dec-2001 15:22


Will 'decompress work? ;) And we need a 'decrypt native. I'll get on Holger's back about it right away. It should handle all cases. ;) decompression, decryption. Both good, you just don't really need the hyphens. How do you say Merry Christmas in Italian? Joyeux NoŽl a tous! (for Frenchies). And what do atheists say without feeling left out? :) Anton.

 [7/7] from: g:santilli:tiscalinet:it at: 26-Dec-2001 14:37


Hello Anton! On 26-Dic-01, you wrote: AR> Will 'decompress work? ;) IIRC the PDF uses LZW compression... I'll check that out. AR> How do you say Merry Christmas in Italian? Buon Natale! Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/