From 88972284a278306ef530c20a75016af11e569b95 Mon Sep 17 00:00:00 2001 From: apache1123 Date: Wed, 25 May 2022 01:40:28 +1200 Subject: [PATCH] add support for brave browser --- install_mecab_for_yomichan.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install_mecab_for_yomichan.py b/install_mecab_for_yomichan.py index 1c5561d..2168b7c 100755 --- a/install_mecab_for_yomichan.py +++ b/install_mecab_for_yomichan.py @@ -54,6 +54,10 @@ 'extension_id_key': 'allowed_origins', 'extension_ids': ['chrome-extension://ogmnaimimemjmbakcfefmnahgdfhfami/'], }, + 'brave': { + 'extension_id_key': 'allowed_origins', + 'extension_ids': ['chrome-extension://ogmnaimimemjmbakcfefmnahgdfhfami/'], + }, } PLATFORM_DATA = { @@ -72,6 +76,10 @@ 'methods': ['file'], 'path': os.path.expanduser('~/.config/chromium/NativeMessagingHosts/'), }, + 'brave': { + 'methods': ['file'], + 'path': os.path.expanduser('~/.config/brave-browser/NativeMessagingHosts/'), + }, } }, 'windows': { @@ -96,6 +104,11 @@ 'path': DIR, 'registry_path': 'SOFTWARE\\Microsoft\\Edge\\NativeMessagingHosts\\{}'.format(NAME), }, + 'brave': { + 'methods': ['file', 'registry'], + 'path': DIR, + 'registry_path': 'SOFTWARE\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts\\{}'.format(NAME), + }, } }, 'mac': { @@ -113,6 +126,10 @@ 'methods': ['file'], 'path': os.path.expanduser('~/Library/Application Support/Chromium/NativeMessagingHosts/'), }, + 'brave': { + 'methods': ['file'], + 'path': os.path.expanduser('~/Library/Application Support/BraveSoftware/Brave-Browser/NativeMessagingHosts/'), + }, } }, }