Reviews for YouTube Pagination
YouTube Pagination by BlackDave
1 review
- Rated 4 out of 5by SpiritedFlow, 19 hours agoHi, thanks for publishing this add-on!
Proper pagination is something I’ve been missing on YouTube for a while.
Unfortunately, version 1.0.2 did not reliably stop infinite scrolling for me. It looks like "STATE.continuationEl" is only assigned during initialization. When YouTube loads another batch of videos, it replaces the continuation element, but the add-on continues to park the old, detached element. The newly created continuation element therefore remains active and triggers further loading.
I fixed this locally by keeping a persistent "MutationObserver" on the feed. Whenever YouTube adds or replaces content, the add-on:
* finds the current continuation element again
* updates "STATE.continuationEl"
* immediately parks the new element
* refreshes the list of video items and hides anything outside the current page
When "Next" is clicked, the current continuation element is temporarily allowed to trigger one load. After the new batch and replacement continuation element appears, the observer parks it again and updates the pagination state.
That seems to make the behavior reliable with YouTube’s dynamically replaced continuation elements. I uploaded this patch as a new plugin named "YouTube Pagination – Community Fix".