"Eric Schulte" <[EMAIL PROTECTED]> writes: > Hi, > I just wrote a little script to switch proxy based on regexps of the > url when loading a new url. Basically it imitates the functionality > of the FoxyProxy Firefox extension. I am using > "content_buffer_location_change_hook" to call my function, but it > appears to call after the page has been loaded, so I have to refresh > after a load for this to work.
> Does conkeror have something analogous to defadice in emacs or is > there a hook which would be called before trying to load the page? I think you would have to review the xulrunner/mozilla source code to figure out if proper point at which you could do this. (The best you can get from Conkeror itself is what you are already using, I think.) Fundamentally, it cannot work perfectly, though, because there may likely be multiple requests being made at the same time, but as there is only this global proxy setting, the same proxy settings must be used for all concurrent requests. Perhaps you can look and see what the foxy proxy extension itself does. I think a more reliable solution would be to always use a local proxy server, and have this proxy server know about the switching logic. -- Jeremy Maitin-Shepard _______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
