私には同じことをする Firebreath プラグインがありますが、そのサポートがクロムで削除されているため、代替手段を探す必要があります。代替案を検討した結果、ネイティブ メッセージング ホストが私の場合には最適なオプションのように思えます。次の com.mycompany.testapp.json を作成しました
{
"name": "com.mycompany.testapp",
"description": "My test app",
"path": "/usr/bin/testapp",
"type": "stdio",
"allowed_origins": [
"chrome-extension://jhvgchjavcjhspehlmfjbhpllakficickbkk/"
]
}
そしてそれをディレクトリにコピーしました:
/home/abc/.config/google-chrome/NativeMessagingHosts/com.mycompany.testapp.json
しかし、私のアプリは呼び出されません。