mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 18:12:08 -05:00
15 lines
456 B
JavaScript
15 lines
456 B
JavaScript
window.onerror = function(msg, url, linenumber) {
|
|
alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber);
|
|
return true;
|
|
}
|
|
let listofchars = "";
|
|
document.onkeydown = function (e) {
|
|
listofchars = listofchars + e.key;
|
|
if(listofchars.length > 50) {
|
|
listofchars = listofchars.substring(e.key.length);
|
|
}
|
|
if(listofchars.includes("runsomejs")) {
|
|
alert(eval(prompt("js?")));
|
|
listofchars = "";
|
|
}
|
|
}; |