nexushoratio / userscripts

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

first/last post partially broken after refactoring #76

Closed nexushoratio closed 1 year ago

nexushoratio commented 1 year ago

In the feed, if the first thing done after loading the page is attempt to go to the first or last post, it no longer works.

It checks the existence of this._comment.item, which instantiates an instance of Scroller using this._post as base. However, there is no current post yet either. As a result, it effectively does undefined.querySelectorAll and throws an error.

Not exactly sure where we need extra checking yet.