Can we change posts per page here? Had the same issue on ABW
I just spent about an hour creating a pagination userscript using DeepSeek v3.2(I think).

// ==UserScript==// @name XenForo Enhanced Pagination// @namespace - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
![2X2vsZ9[1].png 2X2vsZ9[1].png](https://onlybrehs.community.forum/data/attachments/0/87-51be35599c9c6a48ad0996298e9d659a.jpg?hash=wMYYVCB9FG)

EDIT:
UPDATED IT to better support threads memory-wise with large number of posts.
XenForo Enhanced Pagination Userscript - Performance Optimized
What This Userscript Does
This userscript enhances your browsing experience on XenForo forums by letting you choose how many posts you want to see on each page, while being smart about performance and memory usage. Instead of being stuck with the forum's default setting (usually 20 posts per page), you can choose to see 40, 60, or even 100 posts on a single page. It's specially designed to handle large threads with thousands of posts without slowing down your browser or using too much memory.Simple Summary of Features
- Custom Posts Per Page: Choose between 20, 40, 60, or 100 posts per page
- Smart Loading: Only loads posts when you need them, not all at once
- Memory Efficient: Automatically manages memory to prevent browser slowdown
- Fast Navigation: Smooth page transitions even in huge threads
- Memory Limits: Never loads more than 300 posts into memory at once (configurable)
- Lazy Loading: Images and videos only load when they're visible on screen
- Automatic Cleanup: Removes old posts from memory when you don't need them
- Smart Caching: Keeps frequently viewed posts ready for quick access
For Small Threads (under 200 posts):- Works like the regular enhanced pagination
- All posts stay loaded for instant navigation
- Full media loading as you browse
- Only loads what you see: If you're on page 5, it doesn't keep pages 1-4 in memory
- Unloads heavy content: Removes images/videos from posts you're not viewing
- Manages memory: Automatically cleans up old posts to free space
- Prevents crashes: Stops loading if memory gets too high
- No Browser Crashes: Built-in limits prevent memory overload
- Progressive Loading: Loads more posts gradually as you navigate
- Error Recovery: Handles network issues gracefully
- Clean Shutdown: Properly cleans up when you leave the page
- Virtual Scrolling: Only renders posts that are near your viewport
- Intersection Observer: Knows exactly what you're looking at
- Request Throttling: Limits how many pages load simultaneously
- Garbage Collection: Automatic memory cleanup every 30 seconds
- Same Simple Interface: Easy posts-per-page selector
- Visual Feedback: Shows loading status and memory usage
- Seamless Transitions: Pages load smoothly without jumping
- Performance First: Prioritizes browser stability over loading everything
Scenario: 15,000-post thread with 100 posts/page- Traditional Approach: Could try to load 15,000 posts → 500MB+ memory → Browser crash
- Our Approach: Loads ~300 posts → 30-50MB memory → Smooth browsing
- Traditional: All media loads immediately → Slow scrolling, high CPU
- Our Approach: Only visible media loads → Fast scrolling, low CPU
What You SEE:- Fast page loads even in huge threads
- Smooth scrolling without lag
- Images that load as you view them
- Responsive navigation buttons
- Browser tabs crashing
- Memory usage growing endlessly
- Slow performance over time
- Frozen pages from too much content
You can adjust these settings in the code based on your device:- Mobile Phones: Lower memory limits for better performance
- Powerful Desktops: Higher limits for more cached posts
- Slow Connections: Fewer concurrent downloads
- Data-Saving: Aggressive media unloading
Complete Performance-Optimized Userscript Code
edit 2:
deleted the second userscript because it was buggy.
edit 3:
this userscript is less buggy and should handle large media threads

// ==UserScript==// @name XenForo Enhanced Pagination with Correct Pos - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
edit 4:
added an setting to disable media lazyloading; it's set to true by default since some media wasn't loading.

// ==UserScript==// @name XenForo Enhanced Pagination with Media Optio - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Last edited: