Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chromeProfile utility on finiky api #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

expelledboy
Copy link

@expelledboy expelledboy commented Mar 29, 2023

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("work@email.com")
    },
  ]
};

@expelledboy
Copy link
Author

expelledboy commented Apr 6, 2023

#!/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

@atulgpt
Copy link

atulgpt commented Nov 18, 2023

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

@johnste
Copy link
Owner

johnste commented Jan 3, 2024

I can have a look at this soon I hope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants