nexushoratio / userscripts

Random userscripts for browsers.
GNU General Public License v3.0
2 stars 0 forks source link

refactor the navigation code #65

Closed nexushoratio closed 1 year ago

nexushoratio commented 1 year ago

Posts, comments, notifications, job sections, job entries, all use nearly identical code. About the only difference is post's skipping bogus entries with the .clientHeight === 0 check. Oh, and posts and sections pin to the top where as the smaller items will only scroll into view if necessary.

There will be more callbacks. And some features, like first/last are context sensitive so that bit might come out to wrapper functions rather than the jump to functions.