Skip to content

Commit cdfd4a3

Browse files
authored
Add files via upload
1 parent 697eb75 commit cdfd4a3

9 files changed

+270
-0
lines changed

Diff for: bitcoin.png

10.1 KB
Loading

Diff for: donate.html

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
5+
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
6+
<meta charset='utf-8'>
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
8+
<title>Installed</title>
9+
</head>
10+
<body>
11+
<div class="top">
12+
<img src="profile.png" class="circle"/>
13+
</div>
14+
<div class="mid">
15+
<h1 class="center">Thank you for installing</h1>
16+
<div class="left">
17+
<p>
18+
I want to personally thank you for installing Coin-Hive Blocker. I, as most others, would like to keep my processing-power to myself. That is the reason why I made this extension.
19+
</p>
20+
<p>
21+
I am at the moment a High School Senior with a hope for a future job in Web Development. If you know anyone who could be interested in mentoring me, or just have some feedback, please <a href="mailto:[email protected]" target="_blank">send me an email.</a> If you feel generous, please consider leaving a tip. <br>Happy mining-free browsing! 🎉
22+
</p>
23+
</div>
24+
<div class="right">
25+
<div class="col s12">
26+
<img src="steam.svg" id="steam" class="center donate center-align" />
27+
<img src="ether.svg" id="ether" class="center donate center-align" />
28+
</div>
29+
<div class="col s12">
30+
<img src="paypal.png" id="paypal" class="center donate center-align" />
31+
<img src="bitcoin.png" id="btc" class="center donate center-align"/>
32+
</div>
33+
</div>
34+
</div>
35+
<div style="height:1px;width:100vw;background-color: grey"></div>
36+
<div class="howto">
37+
<h1 class="center">How to use the blocker</h1>
38+
<div class="wrap">
39+
<h3>How do I start blocking?</h3>
40+
<p style="width:25%; margin-left:auto;margin-right: auto">
41+
Click the Coin-Hive blocker icon on the top left of your browser. By clicking it you switch between the different states of the blocker. To start click the icon once, so that the badge displays "On".
42+
</p>
43+
<h3 >The Badges</h3>
44+
<ul>
45+
<li>"Off" means that the blocker is NOT running</li>
46+
<li>"On" means that the blocker IS running</li>
47+
<li>"Stat" means that when you click the Icon, stats will be displayed </li>
48+
</ul>
49+
<h3>More questions?</h3>
50+
<p>Send me an email <a href="mailto:[email protected]" target="_blank">here</a><br>or<br>Take a look at the code <a href="https://github.com/andreas0607/CoinHive-blocker" target="_blank">here</a></p>
51+
</div>
52+
</div>
53+
<script type="text/javascript" src="donate.js"></script>
54+
<style type="text/css">
55+
.howto{
56+
width:100%;
57+
height:100%;
58+
}
59+
ul li{
60+
list-style:none;
61+
}
62+
.wrap{
63+
font-size:1.2rem;
64+
width:100%;
65+
margin:0;
66+
left: auto;
67+
right: auto;
68+
text-align:center;
69+
}
70+
.col .s12{
71+
width: 100%;
72+
margin-left: auto;
73+
left: auto;
74+
right: auto;
75+
}
76+
.donate{
77+
width:auto;
78+
height:25vh;
79+
transition: all .3s;
80+
}
81+
.donate:hover{
82+
transform: scale(1.2)
83+
}
84+
body,html{
85+
height:100%;
86+
width:100vw;
87+
margin:0;
88+
overflow-x: hidden;
89+
font-family: Roboto;
90+
background: linear-gradient(to right,#f7f7f7 0%, #dedede 100%)
91+
}
92+
a{
93+
text-decoration: none;
94+
}
95+
a:hover {
96+
text-decoration: underline;
97+
}
98+
.left{
99+
font-size:1.4rem;
100+
float:left;
101+
width:50vw;
102+
font-weight: 300;
103+
text-align: center;
104+
}
105+
.right{
106+
float:right;
107+
width:48vw;
108+
text-align:center;
109+
}
110+
.top{
111+
height:25%;
112+
width:100%;
113+
}
114+
.mid{
115+
height:75%;
116+
width:100%;
117+
}
118+
.center{
119+
text-align: center;
120+
}
121+
p{
122+
width:70%;
123+
margin-left:15%;
124+
}
125+
img {
126+
max-width: 100%;
127+
max-height: 100%;
128+
}
129+
.circle{
130+
display: block;
131+
margin: auto;
132+
border-radius: 50%;
133+
}
134+
</style>
135+
</body>
136+
</html>

Diff for: donate.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
document.getElementById('steam').onclick = function(){
2+
window.open('https://steamcommunity.com/tradeoffer/new/?partner=221545358&token=Hj9zZzb_','_blank')
3+
}
4+
5+
document.getElementById('paypal').onclick = function(){
6+
window.open('https://paypal.me/AMolle','_blank')
7+
}
8+
9+
document.getElementById('ether').onclick = function(){
10+
window.open('https://etherscan.io/address/0xda3014a74b0798e8836bff07dc7e78f85a2deed2','_blank')
11+
}
12+
13+
document.getElementById('btc').onclick = function(){
14+
window.open('https://blockchain.info/address/1MWTCvbndPzw6XfqzuWYsDe3HQ6A9Bf8Gz','_blank')
15+
}

Diff for: ether.svg

+10
Loading

Diff for: paypal.png

5.62 KB
Loading

Diff for: popup.html

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<div class="container">
6+
<h3>Statistics</h3>
7+
<table id="stats">
8+
<tr>
9+
<th>Site</th>
10+
<th>Times blocked</th>
11+
</tr>
12+
13+
</table>
14+
<a id="donate">Donate?</a>
15+
</div>
16+
17+
<style>
18+
a{
19+
text-decoration: none;
20+
}
21+
a:hover {
22+
text-decoration: underline;
23+
}
24+
body, html{
25+
margin:0;
26+
width:300px;
27+
height:300px;
28+
max-height:400px;
29+
overflow-y:scroll;
30+
}
31+
#stats{
32+
width: 100%;
33+
border-collapse: collapse;
34+
}
35+
#stats td, #stats th {
36+
border: 1px solid #ddd;
37+
padding: 8px;
38+
max-width:150px;
39+
40+
overflow: hidden;
41+
text-overflow: ellipsis;
42+
}
43+
#stats tr{
44+
max-width:300px;
45+
}
46+
span{
47+
max-width:150px;
48+
overflow:hidden;
49+
50+
overflow: hidden;
51+
text-overflow: ellipsis;
52+
}
53+
#stats tr:nth-child(even){background-color: #f2f2f2;}
54+
#stats tr:hover {background-color: #ddd;}
55+
#stats th {
56+
padding-top: 12px;
57+
padding-bottom: 12px;
58+
text-align: left;
59+
background-color: #f9a825;
60+
color: white;
61+
}
62+
.container{
63+
width:100%;
64+
height:100%;
65+
text-align: center;
66+
}
67+
68+
</style>
69+
<script src="popup.js"></script>
70+
</body>
71+
</html>

Diff for: popup.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
chrome.storage.sync.get('stat', function(res){
2+
for(site in res.stat){
3+
var tr = document.createElement("tr");
4+
var td1 = document.createElement("td");
5+
var span1 = document.createElement("span");
6+
span1.innerHTML = site;
7+
var td2 = document.createElement("td");
8+
var span2 = document.createElement("span");
9+
span2.innerHTML = res.stat[site];
10+
td1.appendChild(span1)
11+
td2.appendChild(span2)
12+
tr.appendChild(td1)
13+
tr.appendChild(td2)
14+
document.getElementById('stats').appendChild(tr)
15+
}
16+
});
17+
chrome.browserAction.setPopup({
18+
popup: ''
19+
})
20+
document.getElementById('donate').onclick = function(){
21+
chrome.tabs.create({url:chrome.extension.getURL("donate.html")},function(){})
22+
}

Diff for: profile.png

261 KB
Loading

Diff for: steam.svg

+16
Loading

0 commit comments

Comments
 (0)