-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcs-js7.js
76 lines (51 loc) · 2.08 KB
/
cs-js7.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
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
document.addEventListener("DOMContentLoaded", function(event) {
try {
header = document.getElementsByTagName("header")[0].innerHTML;
}
catch (e) {
header = []
}
try {
styles = document.getElementsByTagName("style")
}
catch (e) {
styles = []
}
try {
links = document.getElementsByTagName("link")
}
catch (e) {
links = []
}
all_links= "<div>"
try {
for (const element of links) {
all_links += element.outerHTML
}
}
catch (e) {
return
}
all_links+="</div>"
all_styles= "<style>"
try {
for (const element of styles) {
all_styles += element.innerHTML
}
}
catch (e) {
return
}
for (const element of styles) {
all_styles+=element.innerHTML
}
all_styles+="</style>"
var init ="PCFET0NUWVBFIGh0bWwKICAgIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFRyYW5zaXRpb25hbC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS10cmFuc2l0aW9uYWwuZHRkIj4KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgoKPGhlYWQ+CiAgICA8dGl0bGU+YWNjZXNzIHNlYyBsYWItIGNzMS42PC90aXRsZT4KICAgICAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgogICAgICAgICAgICBib2R5LAogICAgICAgICAgICBodG1sIHsKICAgICAgICAgICAgICAgIG1hcmdpbjogMDsKICAgICAgICAgICAgICAgIHBhZGRpbmc6IDA7CiAgICAgICAgICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgICAgICAgICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgICAgICB9CiAgIGhlYWRlcnsKaGVpZ2h0OiAxMCU7Cn0KCiAgIG1haW57CmhlaWdodDogOTAlOwp9CgojY29udGVudHsKaGVpZ2h0OiAxMDAlCn0KICAgICAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KPGhlYWRlcj4="
var medium = btoa(header.toString() + all_styles.toString() + all_links.toString())
console.log(medium);
var final ="PC9oZWFkZXI+CjxtYWluPgo8ZGl2IGlkID0iY29udGVudCI+CjxpZnJhbWUgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZnJhbWVib3JkZXI9IjAiIHNyYz0iaHR0cHM6Ly9wbGF5LWNzLmNvbS9wdC9zZXJ2ZXJzIiAvPgo8L2Rpdj4KPG1haW4+CjwvYm9keT4KCjwvaHRtbD4="
var pocpage = btoa(atob(init) + atob(medium) + atob(final))
document.open();
document.write(atob(pocpage));
document.close();
});