EasyNav

Enable Next and Prev Chapter by Pressing Right and Left Arrow key.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           EasyNav
// @namespace      EasyNav
// @description    Enable Next and Prev Chapter by Pressing Right and Left Arrow key.
// @author         An0N @ novelupdates.com
// @copyright      http://forum.novelupdates.com/members/an0n.1828/
// @version        1.32
// @icon           https://lh3.googleusercontent.com/-4QLkHOG36Kg/V4tpMr0smAI/AAAAAAAADg0/E11MxOtFmzEfqCDjk8_L6pMQ17_01HWSACCo/s800/left-and-right-arrow-icon-29.png
// @include        https://www.wuxiaworld.com/*
// @include        http://royalroadl.com/fiction/*
// @include        https://royalroadl.com/fiction/*
// @include        https://www.mtlnovel.com/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @grant          none
// @run-at         document-end
// ==/UserScript==

(function() {
  var PrevLink = $("a:contains('Previous Chapter')");
  var NextLink = $("a:contains('Next Chapter')");

  /* //example if need more than one
  if (window.location.href.includes('https://www.google.com/') || window.location.href.includes('https://www.yahoo.com/') || window.location.href.includes('https://www.yandex.com/'))
  {
      var PrevLink = $("a:contains('Previous Chapter')");
      var NextLink = $("a:contains('Next Chapter')");
  }
  */

  if (window.location.href.includes('https://www.wuxiaworld.com/'))
  {
      PrevLink = $("a:contains('PREVIOUS CHAPTER')");
      NextLink = $("a:contains('NEXT CHAPTER')");
  }

  if (window.location.href.includes('https://www.mtlnovel.com/'))
  {
      PrevLink = $("a:contains('« Prev')");
      NextLink = $("a:contains('Next »')");
  }

  document.addEventListener('keydown', function(e) {
    // pressed Right Arrow
    if (e.keyCode == 39 && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
      window.location = NextLink[0].href;
    }
    // pressed Left Arrow
    if (e.keyCode == 37 && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
      window.location = PrevLink[0].href;
    }
  }, false);
})();