CTRL-Z for jpdb.io

Press "CTRL-Z" (hotkey) to undo review

  1. // ==UserScript==
  2. // @name CTRL-Z for jpdb.io
  3. // @namespace
  4. // @version 0.2
  5. // @description Press "CTRL-Z" (hotkey) to undo review
  6. // @author DarkShadow44 (Fabian Maurer
  7. // @match https://jpdb.io/review*
  8. // @license MIT
  9. // @grant none
  10. // @namespace
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. document.addEventListener('keydown', function(event) {
  17. if (event.ctrlKey && event.key === 'z') {
  18. window.history.back();
  19. }
  20. });
  21. })();