Maybe a UserScript like this. Open DevTool console (F12 / Inspect Element)
Type backupThread() or backupThread(thread_id) and press Enter.
?print=true is rate-limited. For a large thread, backupThread(true) or backupThread(thread_id, true)
Doesn’t download images. Save web page complete on the generated HTML to download images.