如何通过终端为勇敢者安装浏览器扩展



我正在写一个脚本,在新安装后设置我的整个linux设置。我在研究如何安装我使用的扩展,而不必从chrome扩展商店安装它们。

如有任何帮助,我们将不胜感激。谢谢

开始:

echo "### Installing bitwarden browser plugin"
BITWARDEN_ID=nngceckbapebfimnlniiiahkandclblb
EXTENSIONS_PATH=/opt/brave.com/brave/extensions
mkdir -p $EXTENSIONS_PATH
echo '{ "external_update_url": "https://clients2.google.com/service/update2/crx" }' > "${EXTENSIONS_PATH}/${BITWARDEN_ID}.json"

我会尝试使用硒,https://stackoverflow.com/questions/57837496/how-to-use-brave-web-browser-with-python-selenium-and-chromedriver#:~:text=from%20selenium%20import%20webdriver%20driver%20%3D%20webdriver.Chrome%20%28executable_path%3D%27%2Fusr%2Fbin%2Forward browser%27%29,driver%20is%20point%20to%2C%2An%20exception%20is+20thrown%2C我认为这将对您在Linux上有所帮助。

最新更新