File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ function deleteElements(selector) {
21
21
function doDelete ( nodes ) {
22
22
[ ] . forEach . call ( nodes , function ( node ) {
23
23
node . remove ( )
24
- console . log ( 'doDelete called' )
24
+
25
25
chrome . runtime . sendMessage ( { site : window . location . href } , function ( ) {
26
- console . log ( 'response from background' )
26
+
27
27
} ) ;
28
28
} ) ;
29
29
}
@@ -32,12 +32,11 @@ function deleteElements(selector) {
32
32
33
33
34
34
chrome . storage . sync . get ( 'block' , function ( res ) {
35
- console . log ( 'Block mining:' + res . block )
36
35
if ( res . block ) {
37
- console . log ( 'Removed items' )
36
+
38
37
deleteElements ( 'script[src="https://coin-hive.com/lib/coinhive.min.js"]' , 'script[src="coinhive.min.js"]' , 'script[src="https://coinhive.com/lib/coinhive.min.js"]' )
39
38
} else {
40
- console . log ( 'Did not remove anything' )
39
+
41
40
}
42
41
43
42
} ) ;
You can’t perform that action at this time.
0 commit comments