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 extension on Chrome with command line #60

Open
Noars opened this issue Oct 28, 2021 · 0 comments
Open

Add extension on Chrome with command line #60

Noars opened this issue Oct 28, 2021 · 0 comments
Labels

Comments

@Noars
Copy link
Contributor

Noars commented Oct 28, 2021

#!/bin/bash

install_chrome_extension () {
preferences_dir_path="/opt/google/chrome/extensions"
pref_file_path="$preferences_dir_path/$1.json"
upd_url="https://clients2.google.com/service/update2/crx"
mkdir -p "$preferences_dir_path"
echo "{" > "$pref_file_path"
echo " "external_update_url": "$upd_url"" >> "$pref_file_path"
echo "}" >> "$pref_file_path"
echo Added ""$pref_file_path"" ["$2"]
}

install_chrome_extension "lhobafahddgcelffkeicbaginigeejlf" "CORS"


This code allows to installe the CORS extension in Chrome.
"lhobafahddgcelffkeicbaginigeejlf" is the id of CORS in Chrome Store.

@Noars Noars added the AFSR label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant