MTL Novel Arrow Key Nav

Allows you to use the left and right arrow keys to navigate chapters at mtlnovel.com, fixes the Night Mode theme, and allows you to optionally hide chapter titles until the end of the chapter

Автор
Fear3d
Установок в день
0
Всего установок
66
Оценки
1 0 0
Версия
1.35
Создан
03.10.2020
Обновлён
03.11.2020
Лицензия
Недоступно
Работает на

When reading at MTLNovel, this enables you to use the right arrow key (also the 'd' key) to go to the next chapter, or the left arrow key (also the 'a' key) if you want to go back to the previous chapter. In addition, you can scroll up and down using the w and s keys if you wish.

This script also makes a couple of cosmetic changes when using Night Mode. It change's MTLNovel's donation banner (at the bottom of the page) to a darker color. The default color was too bright for me when reading at night. It also changes the 'Settings' button to match the night mode theme a bit better. For some reason, they had the default button set as a bright white button, which looks weird in night mode.

I have also added the ability to hide the title at the beginning of the chapter, and display it at the end. Some Chinese novels put major spoilers in the titles of the chapters, so I prefer to avoid seeing them until after I've read the chapter, so I added this option to the script. By default, it will hide the titles. However, if you don't want the titles hidden, you can disable it by changing two variables in the script to 'false'.

To disable the hiding, find these two lines (they're very close to the top of the script):
var doHideTitle = true;
var doHideURL = true;


And then simply change them to:
var doHideTitle = false;
var doHideURL = false;


By default, it will hide both the titles on the page and in the URL. However, there is one downside to the URL feature. If you have this option enabled, and you bookmark the page in your browser, it will create the bookmark using the fake URL instead of the real one. To get around this, simply press the back button on your browser, and then it will reveal the true URL, and then you can safely bookmark the page. If that bothers you, change the doHideURL variable to false, and it will not hide the title in the URL anymore.