Consider disabling javascript on websites by default and only allowing it on those that you trust. e.g. uBlock origin has that built in.
You'd be surprised how much still works perfectly fine and of cause, which sites break for no good reason.
uMatrix permits enabling or disabling JS (and other website features: images, CSS, media, frames, XSS, ...) by domain or subdomain, including default allow/deny permissions should you choose.
You can also temporarily enable or disable specific permissions, and save those changes permanently should you choose.
It's fiddly, but good fiddly.