-
Use
npm run buildto generate the code of the bookmark under the/distdirectory. -
Use
npm run watchto watch for code changes and re-build in/temp. Doesn't create bookmark-ready code -
Use
npm run serveto serve the test page that uses the generated script in/tempfor quick testing :)You can find it @ http://localhost:3000
Create a bookmark on your browser and paste the contents of /dist/main.js in the URL/Location field.
Then, use (click) your bookmark while navigating the site to start the script and add focus styles to the website :)
While the script is running, you can use the following keys to interact with it:
-
Press 0 to toggle the color of the focus styles.
-
Press i to toggle inspector display.
-
Press p to toggle inspector position between Bottom (default) or Side (right column).