frontend/js/debug.js
2023-09-16 22:12:34 -04:00

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 = "";
}
};