Step 1: Create roam/js page
From any page in Roam, create a page titled roam/js by typing
Enter and then
/code and select the Code Block option from the trigger menu. Alternatively, type six backticks (
Step 4: Add plugin to code block
Now that everything is ready, click the red button that says
Yes, I know what I'm doing.
The block becomes yellow, indicating the extension is now active:
Step 6: Refresh Roam
To make sure the plugin is properly loaded, refresh the browser window or Roam app. The shortcut to refresh is
Ctrl-R on Windows and
Cmd-R on macOS.