code-sensei/sensei-grading-bookmarklet/README.md

35 lines
1.3 KiB
Markdown
Raw Normal View History

2020-12-26 14:21:56 -05:00
# `sensei-grading-bookmarklet`
2020-12-26 17:48:38 -05:00
> A bookmarklet to enhance the grading of code ninja assignments.
2020-12-26 14:21:56 -05:00
## Usage
1. Visit the [grading console][grading_console] while logged in as a code sensei.
1. Paste the bookmarklet code in the [address bar](https://en.wikipedia.org/wiki/Address_bar).
2020-12-26 17:48:38 -05:00
1. [Make sure it is prefixed with `javascript:`](#security).
2020-12-26 14:21:56 -05:00
1. Click <kbd>enter</kbd> to execute the bookmarklet code.
2020-12-26 17:48:38 -05:00
1. Grade.
2020-12-26 14:21:56 -05:00
## Development
2020-12-26 17:48:38 -05:00
Upon cloning this project, execute `npm i` to install of the necessary dependencies.
This [bookmarklet][bookmarklet_definition] is compiled using [NodeJS][node_installation].
2020-12-26 14:21:56 -05:00
To run in development mode, run `npm run dev`.
2020-12-26 17:48:38 -05:00
To generate the bookmarklet, run `npm start`.
2020-12-26 14:21:56 -05:00
## Purpose
Grading code ninjas' submissions are slow and tedious because the current site has very poor UX.
2020-12-26 15:33:36 -05:00
My goal is to make an entirely keyboard-navigable enhancement in the form of a bookmarklet.
2020-12-26 14:21:56 -05:00
2020-12-26 17:48:38 -05:00
## Security
For security reasons, modern browsers will make you type the prefix (`javascript:`) manually.
They use this as a method of opting into the potentially dangerous act of executing foreign JavaScript on a webpage.
This code, however, is non-malicious, so no worries.
2020-12-26 14:21:56 -05:00
[grading_console]: https://gdp.code.ninja/Grading
[bookmarklet_definition]: https://en.wikipedia.org/wiki/Bookmarklet
2020-12-26 17:48:38 -05:00
[node_installation]: https://nodejs.org/en/download/