So with yet another update breaking all scripts weeks ago, I wonder if there is any fix yet? I still have to manually reload the page everytime I click reviews, otherwise no script would work. Is there a way to fix that yet?
I haven’t heard of an official way but I created a very simple userscript that just automatically reloads the page when I start reviews.
Unfortunately, I had some unexplicable error while trying to publish it, so I can’t easily share it.
It’s a bit janky at times anyway. (It literally just adds an onclick handler to the review start button with a slight delay)
Try this, I just published it:
That works, thanks. It just a shame that we need to reload the page in the first place. I wonder why they made that change at all.
Technically, they improved the page, because it works in a more modern way. Old way of making webpages basically reloads the whole page including all resources anytime you click on anything. More modern approach is to update only parts that are changed.
However, doing this requires that the whole page is written with this in mind, including injected scripts. Scripts expect the old approach and need to be updated to react to changes, much like my script reacts to them, the scripts would just need to modify new content instead of forcing reload.
Since WK doesn’t offer any support for legacy scripts and they pretend like everything is OK, many older scripts will not be updated, and others need non-trivial changes, so they may not be updated simply because the author doesn’t want to. Ironically, instead of loading less data from server, this results in need to manually reload page, increasing workload for WK server, doubling or tripling number of requests.
Yes, because I also have to reload when I get back to the main page because reloading on the reload page pauses the main page scripts.
It is not a matter of single fix to fix all scripts, but rather that each individual script that was affected needs to be updated to fit in with the new site design. I have seen mention of a work-around - that being yet another script to automatically force a page reload each time. That would help with those scripts where the only issue is the design changes related to page structure.