4chan-x
4chan-x copied to clipboard
Firefox catalog keeps refreshing when a thread open in another tab updates with new content
This is happening since firefox 91, im using violentmonkey as my userscript addon. Here's how to reproduce it: Open any board as catalog Open any thread in a new tab (either mmb or the setting in 4chanx) Go to the thread tab and allow it to fully load and make sure it's being watched for updates Go back to browsing the catalog Eventually the catalog will reload itself because the thread in the other tab has received a new post or w/e
Obviously this is very annoying if you want to browse the catalog with a few threads open. Does not happen on chromium based browsers. Does happen on a clean profile with just violentmonkey and 4chanx No errors in console
Holy shit is that what's happening? I have to scroll the catalog by clicking and holding the scrollbar so that when my scroll position gets reset I can just move it a bit and go back to where I was. Shit's annoying.
Holy shit is that what's happening? I have to scroll the catalog by clicking and holding the scrollbar so that when my scroll position gets reset I can just move it a bit and go back to where I was. Shit's annoying.
I think so, it looks like it's rebuilding part of the DOM that contain the threads. I'm fairly certain a firefox update caused this aswell. Someone else reported a similar issue aswell but closed it as he had fixed it by downgrading firefox. https://github.com/ccd0/4chan-x/issues/3172
Could you check with Tampermonkey or Greasemonkey on that clean profile and see if the issue happens with that? Would help determine is it's a Firefox 91 thing or a Violentmonkey thing.
I'm using Greasemonkey on Firefox 93 and can easily reproduce the issue. It does only seem to happen when the tab of the thread is open. Can't reproduce on Chrome. It's actually easier to see it happening by loading a fast thread in another tab and going back to the catalog. It constantly updates with every new post.
I have this issue but it only occurs when I have "Pin Watched Threads" enabled. edit: I also noticed that if I have two tabs open, Tab A with catalog and Tab B with watched thread, and there are some unread posts on Tab B, as soon as I scroll them into view the catalog in Tab A will move. This happens even if there aren't any new posts in this time period - i.e. it has to do with threadwatcher updating. also, I'm on FF 95.0.1 and 4chanx 1.14.21.7 edit again: tampermonkey 4.13.6136, macos
@some1so I think I'm seeing the same thing. I can't tell if it's actually "refreshing" the catalog but it does basically repeatedly scroll me up to the top of the page and it's very annoying when trying to browse the catalog. After turning off "pin watched threads" it seems like it made it stop.
FF 99.0 64-bit Violentmonkey v2.13.0 4chan-x 1.14.21.7 Win10 x64
@IDUnavailable I found a crude fix - comment out the if block that starts on line 22377 (version 1.14.22) - like this
if (Conf['Pin Watched Threads']) {
//return $.event('SortIndex', {
//deferred: Conf['Index Mode'] !== 'catalog'
//});
}
I'm sure that breaks some other feature, but it allows me to use the 'Pin Watched Threads' feature again