A browser extension to add content to Second Brains.
> cd sphinx-js
> npm i
> npm run build
chrome://extensions/
and hit enter.dist
directory in this project and click open or select.You can now click the Sphinx icon in the browser and see the popup browser action. To make code changes, edit src/App.svelte
and the extension will automatically rebuild the app with your changes. You can hit the refresh icon on the Sphinx extension listing in chrome://extensions/
and you'll see your changes when you click into the browser action popup again.
A content script executes javascript on the websites that you visit. To test that it's working, after installing the extension, go to any website and open the javascript console (option + command + j). In the console you can type window.sphinx
and hit return. You'll see that the object exists and looks like this { name: 'Sphinx' }