MCPcopy Index your code
hub / github.com/hoothin/UserScripts / checkScrollReach

Function checkScrollReach

Pagetual/pagetual.user.js:11731–11740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11729 }
11730 };
11731 let checkScrollReach = () => {
11732 let dist = distToBottom();
11733 if (clickMode) {
11734 if (dist < 10) {
11735 clickNext();
11736 }
11737 } else if (dist < bottomGap) {
11738 nextPage();
11739 }
11740 };
11741 messageHandler = e => {
11742 if (e.data.command === 'pagetual') {
11743 let action = e.data.action;

Callers 1

initListenerFunction · 0.85

Calls 3

distToBottomFunction · 0.85
clickNextFunction · 0.85
nextPageFunction · 0.85

Tested by

no test coverage detected