A good suggestion, but LibreJS is about blocking non-trivial JavaScript which isn't Free Software, it's not about vetting specific JavaScript files. A malicious website can declare its JavaScript to be Free Software, and LibreJS will then permit that script to run.
* https://www.gnu.org/software/librejs/
* https://en.wikipedia.org/wiki/GNU_LibreJS