Couple of dotEPUB alternatives
https://github.com/alexadam/save-as-ebook
https://epub.press/
About a decade ago I used another one named something like "GrabMyPage", it was good at ignoring the garbage, although javascript wouldn't have been as common then. IIRC, an MR member recommended it .
BR