“You can also use ublock origin to selectively disable javascript.”
You need to try NoScript. It blocks EVERYTHING including java script and then requires you to turn on and allow at your own discretion the bare minimum to make certain features work on a site by site basis.
It is not for the lazy because you have to THINK and REMEMBER what scripts do what. But there is no more secure way to use the internet period. Block absolutely everything, and then allow only what you need for your particular needs.
It works so well that it even blocks scripts that don’t even have a name and source yet... All the time it shows six blocked, but there are only five in the “known script” list. I have hit sites where it blocked 75 scripts and all I had to do to read it was allow the top “domain” on the list.
But this is usually java script and they ask you to turn it on. But keep in mind not all JS is nefarious. Although now days it is... But many sites use old school JS for things like navigation buttons and favicons and such. They are only available in JS format and even on ours we have no choice. But these small aesthetics are all we have there. Absolutely nothing else 3rd party.
I’ve used it in the past. uBlock Origin, Ghostery and Cookie Autodelete are sufficient for my needs for the most part.