EasyNav

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

  1. // ==UserScript==
  2. // @name EasyNav
  3. // @namespace EasyNav
  4. // @description Enable Next and Prev Chapter by Pressing Right and Left Arrow key.
  5. // @author An0N @ novelupdates.com
  6. // @copyright http://forum.novelupdates.com/members/an0n.1828/
  7. // @version 1.32
  8. // @icon https://lh3.googleusercontent.com/-4QLkHOG36Kg/V4tpMr0smAI/AAAAAAAADg0/E11MxOtFmzEfqCDjk8_L6pMQ17_01HWSACCo/s800/left-and-right-arrow-icon-29.png
  9. // @include https://www.wuxiaworld.com/*
  10. // @include http://royalroadl.com/fiction/*
  11. // @include https://royalroadl.com/fiction/*
  12. // @include https://www.mtlnovel.com/*
  13. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  14. // @grant none
  15. // @run-at document-end
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. var PrevLink = $("a:contains('Previous Chapter')");
  20. var NextLink = $("a:contains('Next Chapter')");
  21.  
  22. /* //example if need more than one
  23. 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/'))
  24. {
  25. var PrevLink = $("a:contains('Previous Chapter')");
  26. var NextLink = $("a:contains('Next Chapter')");
  27. }
  28. */
  29.  
  30. if (window.location.href.includes('https://www.wuxiaworld.com/'))
  31. {
  32. PrevLink = $("a:contains('PREVIOUS CHAPTER')");
  33. NextLink = $("a:contains('NEXT CHAPTER')");
  34. }
  35.  
  36. if (window.location.href.includes('https://www.mtlnovel.com/'))
  37. {
  38. PrevLink = $("a:contains('« Prev')");
  39. NextLink = $("a:contains('Next »')");
  40. }
  41.  
  42. document.addEventListener('keydown', function(e) {
  43. // pressed Right Arrow
  44. if (e.keyCode == 39 && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
  45. window.location = NextLink[0].href;
  46. }
  47. // pressed Left Arrow
  48. if (e.keyCode == 37 && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
  49. window.location = PrevLink[0].href;
  50. }
  51. }, false);
  52. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址