Allow PageTurning / advancing chapters with space in long-strip mode

Joined
Feb 26, 2018
Messages
1
When reading in Long-Strip mode i tend to navigate through the page by pressing space.
When i then reach the end of a chapter i'd like to use another press of space to advance to the next chapter.
Edge-Case to consider: <Shift> + <Space> moves back upward, so should not trigger the advancement when at page bottom.

As a work around i use the following code pasted into my dev-console.
Code:
document.addEventListener('keydown', (e) => {
  if (e.shiftKey || e.keyCode != 32) return;
  if ((window.innerHeight + window.pageYOffset) >= document.body.offsetHeight) {
    document.querySelector('.reader-image-block').click();
  }
});
Instead of the `d.qS().click()` you'd probably rather call `turnPageForward()` or similar instead (couldn't be bothered to try accessing the minified script :) ).
 

Users who are viewing this thread

Top