Skip to content

Commit

Permalink
added chromium-mac.sh and chromium-linux.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
br-cpvc committed Mar 31, 2023
1 parent aa90212 commit 8460033
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chromium-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /usr/bin/env bash

# from: https://gist.github.com/stuartsierra/6220797
tmp_dir="/tmp"
timestamp=`date +%Y%m%d%H%M%S`
user_dir="${tmp_dir}/chrome-$timestamp-$RANDOM"
echo "temp dir: ${user_dir}"
#chromium=/usr/bin/chromium
chromium="flatpak run org.chromium.Chromium"
$chromium --args --proxy-server="socks5://localhost:$1" "$2" --user-data-dir=${user_dir}
9 changes: 9 additions & 0 deletions chromium-mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /usr/bin/env bash
#/Applications/Chromium.app/Contents/MacOS/Chromium --proxy-server="socks5://localhost:$1" "$2"

# from: https://gist.github.com/stuartsierra/6220797
tmp_dir="/tmp"
timestamp=`date +%Y%m%d%H%M%S`
user_dir="${tmp_dir}/chrome-$timestamp-$RANDOM"
echo "temp dir: ${user_dir}"
open -n -a /Applications/Chromium.app --args --proxy-server="socks5://localhost:$1" "$2" --user-data-dir=${user_dir}

0 comments on commit 8460033

Please sign in to comment.