Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
godetremy authored Nov 16, 2023
1 parent 0a29efd commit b834473
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@
<span class="loader"></span>
<script>
var KEY = 0
document.body.onkeydown = function(e){
if(e.keyCode == 69) {
KEY++
if (KEY == 3) {
KEY = 0
var iframes = parent.document.getElementsByTagName("iframe")
for (var i = iframes.length - 1; i >= 0; i--) {
iframes[i].remove();
}
}
setTimeout(()=> {
KEY = 0
}, 2000)
}
};
function destroyIframe() {
var iframe = window.frameElement;
iframe.parentNode.removeChild(iframe);
}

document.body.onkeydown = function(e) {
if (e.keyCode == 69) {
KEY++;
if (KEY == 3) {
KEY = 0;
destroyIframe();
}
setTimeout(() => {
KEY = 0;
}, 2000);
}
};
parent.document.body.innerHTML += '<style>.note {display: none !important;}</style>'
</script>
</body>
Expand Down

0 comments on commit b834473

Please sign in to comment.