m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.98k stars 449 forks source link

[Suggestion] Add Google Input Tools externsion as one of the default externsion #191

Open kaiyuhou opened 1 year ago

kaiyuhou commented 1 year ago

I really like this project, the only thing that bothered me is to type in no-English words in the virtual browser. I have to keep copy-pasting for new searching keywords.

Then I find an elegant solution, using Google Input Tools extension. It is a fully web-based IME, providing virtual keyboards for over 90 languages, and full IMEs for over 30 languages.

As we cannot directly install a new extension for neko, I changed the following code: https://github.com/m1k1o/neko/blob/32f4dc5f2a0e06117df19981302dfe88ec684c39/.docker/ungoogled-chromium/Dockerfile#L33-L36

to

    EXTENSIONS=( \
      cjpalhdlnbpafiamejdnhcphjbkeiagm \
      mnjggcdmjocbbbhaepdhchncahnbgone \
      mclkkofklkfljcocdinagocijmpgbhab \
    ); \

And recompiled the docker file. It works perfectly. image

Since the Google Input Tools supports all major no-English languages, I would suggest adding this extension as one of the default extensions. I can submit a pull request if you want.

(Additionally, if we can find a way to allow users to add new extensions during runtime, it then will be unnecessary.)

m1k1o commented 1 year ago

I woul prefer setting new extensions during runtime. It can be acheived using neko-rooms, where it modifies policies file.