-
Notifications
You must be signed in to change notification settings - Fork 1
/
cock.html
94 lines (70 loc) · 2.25 KB
/
cock.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap" rel="stylesheet">
<!-- CSS -->
<style>
@font-face {
font-family: 'Roboto', sans-serif;
src: url(https://fonts.googleapis.com/css2?family=Roboto);
}
html{
background-color: #000000;
font-family: Roboto;
color: white;
margin: 0; height: 100%; overflow: hidden
}
.bigflex{
font-family: Roboto;
margin: auto;
text-align: center;
font-size: 65px;
}
.smallflex{
font-family: Roboto;
margin: auto;
text-align: center;
font-size: 20px;
}
</style>
<!-- Design -->
</head>
<div class="smallflex">
Username: <p id="name"></p>
</div>
<div class="bigflex">
<strong><p style="color:#ff4500;" id="karma"></p></strong> Total Karma
</div>
<div class="smallflex">
<strong><p style="color:#0078ef;" id="postkarma"></p></strong> Post Karma <strong><p style="color:#46d160;" id="commentkarma"></p></strong> Comment Karma <strong><p style="color:#ff439d;" id="awardeekarma"></p></strong> Awardee Karma <strong><p style="color:#ddbd37;" id="awarderkarma"></p></strong> Awarder Karma
</div>
</body>
<!-- Script
// This works by magic, don't touch please -->
<script type="text/javascript">
document.title = karma;
function x(){
var request = "https://www.reddit.com/user/regian24/about.json";
var me = new XMLHttpRequest();
me.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var redditAboutJSON = JSON.parse(this.responseText);
document.getElementById("karma").innerHTML = redditAboutJSON.data.total_karma;
document.getElementById("postkarma").innerHTML = redditAboutJSON.data.link_karma;
document.getElementById("commentkarma").innerHTML = redditAboutJSON.data.comment_karma;
document.getElementById("awardeekarma").innerHTML = redditAboutJSON.data.awardee_karma ;
document.getElementById("awarderkarma").innerHTML = redditAboutJSON.data.awarder_karma;
}
};
me.open("GET", request, true);
me.send();
sleep(600);
x();
}
x();
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
</script>
</html>