code-sensei/sensei-grading-bookmarklet
2021-01-12 16:43:53 -08:00
..
app.js added skip action 2021-01-02 15:07:29 -08:00
bookmarklet.txt added skip action 2021-01-02 15:07:29 -08:00
index.js added bookmarklet distro to github 2021-01-02 14:30:47 -08:00
package-lock.json 🟡 2020-12-26 14:48:38 -08:00
package.json 🟡 2020-12-26 14:48:38 -08:00
README.md Update README.md 2021-01-12 16:43:53 -08:00

sensei-grading-bookmarklet

Bookmarklet Size

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.

Usage

One-Time

  1. Visit the grading console while logged in as a code sensei.
  2. Paste the bookmarklet code in the address bar.
  3. Make sure it is prefixed with javascript:.
  4. Click enter to execute the bookmarklet code.
  5. Grade.

Install

To install a bookmarklet, it must be added to your bookmarks bar.

Chrome Installation

  1. Right-click your bookmark bar.
  2. Click "Add page...".
  3. Set the name to Sensei Grading +.
  4. Set the URL to the latest bookmarket distribution.
  5. Click "Save".
  6. Visit the grading console while logged in as a code sensei.
  7. Click "Sensei Grading +" on your bookmarks bar to execute the bookmarklet code.
  8. 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.