YouTube Pagination에 대한 리뷰
YouTube Pagination 제작자: BlackDave
SpiritedFlow 님의 리뷰
5점 만점에 4점
SpiritedFlow 님, 한 달 전Hi, 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".
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".
개발자 답글
한 달 전에 게시됨Hiii, thank you for the review and fix. I'm actually working on a newer version from scratch, hopefully i'll be able to finish and upload it next week. Actually this is my first project i'm developing. Really cool to see how it helps other people too.
리뷰 1개
리뷰가 없습니다