Ruby REx

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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(); // 解答する
      }
  });
})();