And if you are feeling extra frisky, install noscript to pick and choose what sources of js you are willing to run and/or be terrified/furious of all the non-relevant scripts sites run.
I actually did that for a while (on my PC at least). Major pain in the ass unfortunately.
Of course it’s good to block that crap, but usability takes too much of a nose dive. I do live in the EU though, so when it comes to data protection things have gotten a lot better in the last years.
I’ve been using it for a few years now and by now picking out the scripts for site navigation and finding the relavant cdn is pretty much automatic now. If I find a site that is just an absolute js clusterfuck, I just run it in porno mode and let the scrips loose and hope for the best until I find what I went there for. I even take the time to reject cookies manually as per my right, haha. Maybe it will show up on some stat somewhere, a flaccid message, but a message none the less.
What did you think of the recent deal the EU made with the giants? As an EU citizen I find it concerning, because it might be a slippery slope.