finicky icon indicating copy to clipboard operation
finicky copied to clipboard

Add chromeProfile utility on finiky api

Open expelledboy opened this issue 2 years ago • 3 comments

I havent tested that this works, because I cant actually build this project.

In theory this is what I am looking for:

module.exports = {
  defaultBrowser: "Firefox",
  handlers: [
    {
      match: /slack/,
      browser: finiky.chromeProfile("[email protected]")
    },
  ]
};

expelledboy avatar Mar 29 '23 14:03 expelledboy

#!/bin/bash

case "$(uname -s)" in

Darwin)
  CHROME_FOLDER="$HOME/Library/Application Support/Google/Chrome"
  ;;
Linux)
  CHROME_FOLDER="$HOME/.config/google-chrome"
  ;;
CYGWIN* | MINGW32* | MSYS* | MINGW*)
  CHROME_FOLDER="$HOME/AppData/Local/Google/Chrome"
  ;;
*)
  echo "Unsupported platform"
  exit 1
  ;;

esac

cat "$CHROME_FOLDER/Local State" |
  jq -r ".profile.info_cache | to_entries[] | {profile: .key, name: .value.name, user_name: .value.user_name}"
image

expelledboy avatar Apr 06 '23 13:04 expelledboy

HI @johnste should we merge this PR? This seems to bring good value

atulgpt avatar Nov 18 '23 16:11 atulgpt

I can have a look at this soon I hope

johnste avatar Jan 03 '24 18:01 johnste