Greasy Fork

来自缓存

Mangaplus Key Shortcut Fix

Mangaplus only allowed up and down arrows, this re-enables things like reloading that it was blocking.

目前为 2020-10-05 提交的版本。查看 最新版本

// ==UserScript==
// @name     Mangaplus Key Shortcut Fix
// @description Mangaplus only allowed up and down arrows, this re-enables things like reloading that it was blocking.
// @version  1
// @grant    unsafeWindow
// @include  http://mangaplus.shueisha.co.jp/viewer/*
// @include  https://mangaplus.shueisha.co.jp/viewer/*
// @run-at	 document-idle
// @namespace https://greasyfork.org/users/692676
// ==/UserScript==

window.addEventListener('keydown', function (event) {
  switch (event.key) {
    case 'ArrowDown':
      break;
    case 'ArrowTop':
      break;
    default:
      event.stopPropagation();    
  }
}, true);