Ruby REx

You can turn page by left and right key shortcut. Ruby RExサイト上で、左右の矢印キーで、ページを移動できます。

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Ruby REx 
// @name:ja      Ruby REx ページ移動の矢印キーボードショートカット
// @name:en      Ruby REx key shortcut
// @namespace    https://greasyfork.org/ja/users/570127
// @version      1.0.1
// @description  You can turn page by left and right key shortcut. Ruby RExサイト上で、左右の矢印キーで、ページを移動できます。
// @description:ja RExで、右キーで「解答する」、左キーで「前の問題へ」となります。
// @description:en You can turn page by left and right key shortcut.
// @author       universato
// @license      MIT
// @match        https://rex.libertyfish.co.jp/exam_histories/*
// @supportURL   https://twitter.com/universato
// ==/UserScript==

(function() {
  document.addEventListener('keydown', function (event) {
      if (event.key === 'ArrowLeft'){
          document.querySelector('a.pull-left').click(); // 前の問題へ
      }else if(event.key === 'ArrowRight'){
          document.querySelector('input.pull-right').click(); // 解答する
      }
  });
})();