It is an easy in using Anti Miner Extension, which block miner on all websites.
It is stop all hidden mining scripts without removing other functions from the infected website, so you can use the infected site without harming your CPU.
It also has White list function.
What makes it possible to disable extension functionality for certain sites for a while or at all. If you need to pass a captcha or a link that requires a mining etc.
Use a reliable bitcoin blocker and do not let anyone use the resources of your computer without your knowledge.