Accessing Notion AI from chrome without Notion desktop
Notion AI is great and I often want to access it when in middle of another task, when not using Notion. This is easy if you have Notion desktop installed - on windows you simply press Shift + Ctrl + J and it opens a Notion AI window for you to type your query into.
I mostly use a chromebook so can't install Notion desktop there. Other people might not want to use Notion desktop for other reasons. There are a couple of chrome extensions which seem to offer this functionality (NotionAI Plus and Notion AI Anywhere) but neither seem to work. There are some extensions that let you search notion, but not use the AI functionality. I also gave the omnibar a go, adding Notion Search (which has an AI result) but couldn't get it to deeplink the search query.
So put together a quick chrome extension. It has three files, you can quickly create them in a text editor. Then go into chrome extensions, click the developer mode toggle, then click load unpacked and select the folder containing the three files. You might also have to click keyboard extensions and manually select the preferred extension. Chose global to have the extension work outside of chrome (assuming it doesn't conflict with another extension).
manifest.json
See the Pen manifest.json by Luke S (@Luke-S-the-typescripter) on CodePen.
content.js
See the Pen content.js by Luke S (@Luke-S-the-typescripter) on CodePen.
background.js
See the Pen background.js by Luke S (@Luke-S-the-typescripter) on CodePen.