Hitomi.la - Spacebar/Enter to go next panel

Enables clicking `spacebar` (or `enter`) to go to next panel, and shift+spacebar (of shift+enter) to go to previous

// ==UserScript==
// @name         Hitomi.la - Spacebar/Enter to go next panel
// @version      1.1
// @description  Enables clicking `spacebar` (or `enter`) to go to next panel, and shift+spacebar (of shift+enter) to go to previous
// @namespace    wierd4life
// @author       wierd4life
// @license      public
// @grant        none
// @match        *://hitomi.la/reader/*
// ==/UserScript==
(function(){
  window.addEventListener('keydown', function (e) {
     if(e.keyCode == 32 || e.keyCode == 13) {
       e.shiftKey ? unsafeWindow.prevPanel?.() : unsafeWindow.nextPanel?.();
     }
  }, false);
})();