Skip to content

Commit

Permalink
Fixes #4, Added a new filter
Browse files Browse the repository at this point in the history
  • Loading branch information
xd4rker committed Oct 20, 2017
1 parent ae3d172 commit 159a701
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion assets/filters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
*://*.ppoi.org/lib/*
*://*.coinerra.com/lib/*
*://*.minero.pw/miner.min.js*
*://*.coinblind.com/lib/*
*://*.coinblind.com/lib/*
*://*.webmine.cz/miner*
6 changes: 2 additions & 4 deletions js/minerkill.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

function triggerEvent(miner) {
function triggerMbEvent(miner) {
let event = new CustomEvent('minerBlocked', {
detail: {
minerUrl: miner
Expand All @@ -9,8 +9,6 @@ function triggerEvent(miner) {
document.dispatchEvent(event);
}

let event = new Event('minerBlocked');

for(let name in this) {

if(name === 'webkitStorageInfo') {
Expand All @@ -26,6 +24,6 @@ for(let name in this) {
console.log('[+] Coinhive miner found, stopping...');
this[name].stop();
this[name] = null;
triggerEvent('coinhive.com');
triggerMbEvent('coinhive.com');
}
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "minerBlock",
"description": "Blocks cryptocurrency miners all over the web.",
"version": "0.4.7",
"version": "0.4.8",
"options_page": "options.html",
"background": {
"scripts": ["js/utils.js", "js/background.js"],
Expand Down
2 changes: 1 addition & 1 deletion options.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="tab-cnt">

<p>
<h3>MinerBlock v0.4.7</h3>
<h3>MinerBlock v0.4.8</h3>
Please email your feedback to cryptominedev@gmail.com.
</p>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="wrap">
<div class="logo"><img src="icons/icon_48.png"></div>
<div class="content"><span id="title">MinerBlock</span><br><small>Version 0.4.7</small></div>
<div class="content"><span id="title">MinerBlock</span><br><small>Version 0.4.8</small></div>
</div>

<div id="hideWl">
Expand Down

0 comments on commit 159a701

Please sign in to comment.