I just spent about an hour creating a pagination userscript using DeepSeek v3.2(I think).
https://pastebin.com/494XYhgk
EDIT:
UPDATED IT to better support threads memory-wise with large number of posts.
XenForo Enhanced Pagination Userscript - Performance Optimized
What This Userscript...