-
Notifications
You must be signed in to change notification settings - Fork 0
/
botprevention.js
36 lines (29 loc) · 1016 Bytes
/
botprevention.js
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
//Thanks Pokemon Peninsula
var int = undefined
var count = 0;
var footer = document.getElementById("footer");
var add = document.getElementById("mail")
var address = "safewrdg3rgreg"
var site = "gmail.com"
if(add){add.innerHTML = "<a href='mailto:" + address + "@" + site + "'>E-Mail</a>" }
else{
footer.innerHTML = footer.innerHTML + "| <a href='mailto:" + address + "@" + site + "'>E-Mail</a>"
}
//console.log("You are in the LOCAL version of this webpage, NOT the github site")
function copycode(i,source){
var codes = [
`<a href="https://king-of-wolves10.github.io"><img src="https://king-of-wolves10.github.io/link.gif"></a>`,
`<a href="https://king-of-wolves10.github.io/melon"><img src="https://king-of-wolves10.github.io/melon/link.gif"></a>`
]
source.innerText = "Copied"
navigator.clipboard.writeText(codes[i]);
int = setInterval(wait,1000,source)
}
function wait(source){
source.innerText = "Copy Code"
count ++;
if(count == 1){
clearInterval(int)
count = 0
}
}