.. | ||
app.js | ||
bookmarklet.txt | ||
index.js | ||
package-lock.json | ||
package.json | ||
README.md |
sensei-grading-bookmarklet
A bookmarklet to enhance the grading experience of code ninja assignments.
Purpose
Grading code ninjas' submissions is slow and tedious because the current site has a poor user experience. My goal is to make an entirely keyboard-navigable enhancement in the form of a bookmarklet.
Getting Started
To install a bookmarklet, it must be added to your bookmarks bar.
- Right-click your bookmark bar.
- Click "Add page...".
- Set the name to
Sensei Grading +
. - Set the URL to the latest bookmarket distribution.
- Click "Save".
Now that you have installed the bookmarklet, using it is as simple as the following steps:
- Visit the grading console while logged in as a code sensei.
- Click "Sensei Grading +" on your bookmarks bar to execute the bookmarklet code.
- Grade.
Keybinds
Key | Action |
---|---|
i | Marks assignment as incomplete |
s | Skips to next assignment |
1 | Rates assignment as 1-star |
2 | Rates assignment as 2-star |
3 | Rates assignment as 3-star |
enter | Submits assigment grade |
Development
This bookmarklet is compiled using NodeJS.
Upon cloning this project, execute npm i
to install of the necessary dependencies.
To run in development mode, run npm run dev
.
To generate the bookmarklet, run npm start
.
Security
For security reasons, modern browsers will make you type out 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.