I have used 1Blocker for years and it has worked great. There are many others all using the same principle. It also allows me to have a custom rule to disable JS entirely on some sites.