I don't generally disable it across the browser, but uBlock Origin does it on a site by site basis which I do whenever I get one of those popups asking me to sign up for their email newsletter or whatever. Those sites instantly lose JavaScript privileges