Ublock origin (in advanced mode), umatrix, and noscript each enable this functionality. Umatrix has the best UI of the three once you get used to it in my opinion. Go on YouTube and look for "the hated one" for great tutorials on JS blocking with umatrix and ublock origin.
uMatrix is wonderful. I can’t imagine browsing without it. The parent comments are talking about iOS, though, where there is unfortunately much less choice. Even “Firefox” on iOS isn’t really Firefox and can’t run normal extensions.
Yes, but then it's all or nothing. In advanced mode you can have a global configuration to block all third party scripts and frames, and then allow scripts from specific domains (or neutralize the global deny for that domain, so that block lists still work). Particularly useful when you just want to move forward and Google's captcha is blocked, but don't want to allow all the other 50 scripts on the site.