enneract Posted June 22, 2009 Share Posted June 22, 2009 function FindProxyForURL(url, host) { if ( shExpMatch(url, "*pandora.com*") ) { return "PROXY 127.0.0.1:8888"; } else { return "DIRECT"; } } Name it proxy.pac or something similar (.pac), and point your browser (FF & derived browsers, songbird, etc) or internet connection settings (windows... for IE, chrome) at it. Might not be the best way to do it, but seems to work for me, and I haven't seen any posts regarding this. Removes the need to use a specific browser, and cuts down on general annoyance with the proxy. Quote Link to comment Share on other sites More sharing options...
ZigZagJoe Posted June 23, 2009 Share Posted June 23, 2009 function FindProxyForURL(url, host) { if ( shExpMatch(url, "*pandora.com*") ) { return "PROXY 127.0.0.1:8888"; } else { return "DIRECT"; } } Name it proxy.pac or something similar (.pac), and point your browser (FF & derived browsers, songbird, etc) or internet connection settings (windows... for IE, chrome) at it. Might not be the best way to do it, but seems to work for me, and I haven't seen any posts regarding this. Removes the need to use a specific browser, and cuts down on general annoyance with the proxy. // script which IE or firefox can use to decide how to route a certain URL // this can also be used to avoid pandora's US-only restriction function FindProxyForURL(url, host) { if (shExpMatch(host, "*pandora.com*")) // url contains pandora.com return "PROXY 127.0.0.1:8888"; return "DIRECT"; // no proxy } In the first post :S Also, IE seems to be a bit weird evaluating this. (I've not tried it in a while though) Quote Link to comment Share on other sites More sharing options...
enneract Posted July 6, 2009 Author Share Posted July 6, 2009 // script which IE or firefox can use to decide how to route a certain URL // this can also be used to avoid pandora's US-only restriction function FindProxyForURL(url, host) { if (shExpMatch(host, "*pandora.com*")) // url contains pandora.com return "PROXY 127.0.0.1:8888"; return "DIRECT"; // no proxy } In the first post :S Also, IE seems to be a bit weird evaluating this. (I've not tried it in a while though) rofl. I didn't copy yours, I swear, I just noted the problem and threw that together. I don't use IE, so no idea other than it *should* work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.