Jump to content

auto-config proxy script for pandorasaver


enneract

Recommended Posts

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

  • 2 weeks later...
// 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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...