An Arc Boost that lets you message ChatGPT from the Command Bar.
Video here: https://twitter.com/ifvictr/status/1695141929535811821
The setup for this consists of two parts: creating the Boost and creating the search shortcut.
- Go to
arc://boost/new
(or enterNew Legacy Boost (Advanced)
in the Command Bar) and select the "Inject" template. - When asked what you want to boost, select "A specific website" and enter
chat.openai.com
. Then, click "Create Boost". - Delete the example code from the Boost editor, then replace it with the contents of
content.js
. - (Optional) Click on the gear icon on the top-left corner and name the Boost "ChatGPT Search Helper".
- Go to
arc://settings/searchEngines
. - Next to "Site search", click "Add". In the field under "URL with %s in place of query", enter
https://chat.openai.com/?q=%s
. Choose whatever name and shortcut you like. Personally, I chose "ChatGPT" and "c". Click "Add" afterwards. - It is done! You can now use the shortcut you made to message ChatGPT from your Command Bar.