Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # fixes problem with Chrome displaying "resolving Proxy" for 10+ seconds on each request
- # basically replace chrome binary with wrapper passing --no-proxy-server parameter
- set -u
- set -e
- chromeBin="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
- # make room for the wrapper
- if [ -e "${chromeBin}.bin" ]; then
- echo "you already ran this script"
- exit 1
- else
- echo "replacing Chrome binary with wrapper"
- mv "$chromeBin" "${chromeBin}.bin"
- fi
- # write the wrapper
- echo '#!/bin/bash' >> "$chromeBin"
- echo "exec \"${chromeBin}.bin\" --args --no-proxy-server" >> "$chromeBin"
- chmod u+x "$chromeBin"
Add Comment
Please, Sign In to add comment