The best way is to install uBlock (or your preferred ad blocker), not to disable javascript.
Javascript is like a knife. Do I want people who know how to use a knife in my house? Yes of course. Do I want people that stab other people in my house? No. Nowadays there are tools to leave those people outside your door.
It's time to end the association between javascript and bad web practices.
I use uMatrix. It allows me to block all third party scripts by default, easily unblock them one by one if I need to, and save my changes for sites I visit often.
An answer to a systematic and institutional abuse relying on individual actions which the overwhelming majority of the population will not or can not undertake ... is inherently unjust.
I use uMatrix. I appreciate the hell out of uMatrix. uMatrix is not the solution to the present level of abusive dark Web patterns.
Javascript is like a knife. Do I want people who know how to use a knife in my house? Yes of course. Do I want people that stab other people in my house? No. Nowadays there are tools to leave those people outside your door.
It's time to end the association between javascript and bad web practices.