-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (35 loc) · 1.11 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>My JavaScript Project</title>
<script src="main.js"></script>
</head>
<body>
<iframe id="frame" src="https://www.zerotoone.com.br/wp-content/plugins/super-links/application/helpers/super-links-proxy.php?https://www.blooket.com/" onload="run()" height="750px"></iframe>
<script>function run() {
const iframe = document.querySelector("iframe").contentWindow;
iframe.eval(`window.addEventListener('keydown', function (e) {
if (e.altKey) {
if (e.keyCode == 74) {
eval(prompt("entercode"))
}
}
})`)
iframe.eval(`window.addEventListener('keydown', function (e) {
if (e.altKey) {
if (e.keyCode == 76) {
window.location.replace("https://www.zerotoone.com.br/wp-content/plugins/super-links/application/helpers/super-links-proxy.php?" + prompt("enter url"))
}
}
})`)
// this would turn the 1st iframe in document blue.
}</script>
<style>
iframe {
width: 100%;
} body {
margin: 0;
}
</style>
</body>
</html>