crypto miner blocker: Block Crypto Miner JavaScript code automatically
Crypto Miner Blocker
This Google Chrome extension automatically blocks known crypto web mining scripts.
Why block Web Crypto Miners?
Recently ThePirateBay.org and Showtime.com were caught experimenting with CoinHive [https://coin-hive{.}com/], a crypto miner for websites. While this looks like a promising solution to the dying ads market, the implementation of webmasters is simply full out wrong as CoinHive itself has concluded {https://coin-hive[.]com/blog/status-report}:
We’re a bit saddened to see that some of our customers integrate Coinhive into their pages without disclosing to their users what’s going on, let alone asking for their permission. We believe there’s so much more potential for our solution, but we have to be respectful to our end users. […]
— CoinHive
A webmaster following the instructions of CoinHive’s documentation{https://coin-hive[.]com/documentation} will by default end up consuming up to 70% of every visitor’s CPU until they close the website. While this might not be a problem for desktops energy-wise, it will drain the battery of laptops and smartphones. And we haven’t even talked about the CPU usage slowing the machine down, fan noise, heat, and a shorter hardware life.
Until a proper fix is released by CoinHive – for example requiring every visitor’s consent before starting mining – I recommend manually adding a few block rules to your favorite ad blocker or installing this extension.
Contributors can easily set up a work environment as follows:
- Clone the repository git clone https://github.com/lesander/crypto-miner-blocker.git
- Open Google Chrome and navigate to chrome://extensions.
- Enable Developer Mode by clicking the checkbox in the top right corner.
- Click the ‘Load unpacked extension’ button and select the directory you just cloned.
- Enable the extension and start contributing!
Source: https://github.com/lesander/