Building Google Chrome extensions for ChatGPT

Is it legal to develop Google Chrome extensions for ChatGPT and publish them?

Many of them already exist and I would like to publish mine to help researchers exploit prompt engineering.