Which would then require you to allow it for each site.
I use NoScript for that purpose though. I’ve not delved into uBlocks configuration, but NoScript makes it pretty easy to only allow javascript from certain sources on the page (can easily select which third party sites to allow).
There is also a setting under Default Behavior to disable javascript: https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-scripting
Which would then require you to allow it for each site.
I use NoScript for that purpose though. I’ve not delved into uBlocks configuration, but NoScript makes it pretty easy to only allow javascript from certain sources on the page (can easily select which third party sites to allow).