This extension will analyze a page's javascript files and block coin mining.

Latest Version

Version
1.0.4
Update
December 28, 2017
Size
52.09KiB
Developer
Category
Users
1,000+
Rating
3.54545 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
Storage
WebRequest
WebRequestBlocking

See more

No Miner Extension

Blocks Coin-Miners from Websites before and after they load.

v1.0.1: Added Background content blocker which scans Javascript requests for CoinMiners and cancels the requests. The background blocker tells the content blocker to remove the script from the webpage. This blocks sites self-hosted miners and proxy-miners.

v1.0.2: Added Settings page to allow users to add white-listed URL patterns.. For example: (.*?)google(.*?) would allow all urls that contain \"google\" to not be scanned. These rules use \"regex\"/\"regular expression\" patterns. Also added new patterns to block Base64 encoded Javascript miners which was a workaround to this plugin. Now this blocks everything again =]

v1.0.3: Fixed bug in Firefox and Chrome which causes webRequest.onBeforeRequest to NOT cancel the download of bad files. To fix it, I made scanning synchronous instead of asynchronous (a bit slower, but not noticeable). Fixes issue: https://github.com/Brandon-T/Coin-Blocker/issues/1

v1.0.4: Fixed bug in the code which caused some white-listed sites to be scanned and blocked still. Added debugging code to print to the developer's console exactly what was blocked and what was allowed.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "No Miner", "description": "This extension will analyze a page's javascript files and block coin mining.", "version": "1.0.4", "browser_action": { "default_icon": "icon.png" }, "options_page": "settings.html", "content_scripts": [ { "matches": [ "http://*/*", "https://*/*" ], "js": [ "jquery-3.2.1.min.js", "blocker2.js" ], "run_at": "document_start", "all_frames": true } ], "background": { "scripts": [ "jquery-3.2.1.min.js", "blocker.js" ] }, "permissions": [ "activeTab", "storage", "webRequest", "webRequestBlocking", "" ]}
Read more