If you're okay with a workaround, I get around this by using the Requestly Extension. I set up a script that runs before page load and adds the pagesize
GET parameter to the URL if it doesn't already exist. Note that I used the code from this SO answer to get all of the query parameters.
var options = window.location.search.slice(1).split('&')
.reduce(function _reduce (a, b) {
b = b.split('=');
a[b[0]] = decodeURIComponent(b[1]);
return a;
}, {});
if(options[""]){
window.location += "?pagesize=50";
}else if(!options["pagesize"]){
window.location += "&pagesize=50";
}
I set it up to run on any host that contains "stackoverflow".
It does add pagesize=50
to SO URLs that don't have pagination (since it adds it to every page), but I haven't found any pages that break because of this extra parameter yet.
Edit
In the process of making this answer and linking to a specific SO answer I realized that my method does not work for linking directly to answers using a hash in the URL. I fixed this by simply ignoring any URLs that have a hash in them.
var options = window.location.search.slice(1).split('&')
.reduce(function _reduce (a, b) {
b = b.split('=');
a[b[0]] = decodeURIComponent(b[1]);
return a;
}, {});
if(options[""] && !window.location.href.contains('#')){
window.location += "?pagesize=50";
}else if(!options["pagesize"]){
window.location += "&pagesize=50";
}
The assumption here is that there are no SO URLs that contain hashes where we would also want to paginate. If that assumption fails, you could use regex to insert the extra query parameter before the hash.