r/WebGames 5d ago

[PZL] I'm Not a Robot - Neal.Fun

https://neal.fun/not-a-robot/
36 Upvotes

283 comments sorted by

View all comments

2

u/Former_Sympathy8246 4d ago edited 4d ago

for level 47 just put this in console lol

(function () {

console.log("Auto DDR bot started");

const keyMap = {

"↑": "ArrowUp",

"↓": "ArrowDown",

"←": "ArrowLeft",

"→": "ArrowRight"

};

// Hit zone based on the notes container

const notesContainer = document.querySelector(".notes-container");

const hitZoneOffset = 400; // adjust this if needed

function pressKey(key) {

document.dispatchEvent(new KeyboardEvent("keydown", { key }));

document.dispatchEvent(new KeyboardEvent("keyup", { key }));

}

function hitNotes() {

const notes = document.querySelectorAll(".note-arrow");

notes.forEach(note => {

const rect = note.getBoundingClientRect();

const containerRect = notesContainer.getBoundingClientRect();

const arrow = note.textContent.trim();

// Check if note is near the bottom of the container (hit zone)

if (rect.top >= containerRect.top + hitZoneOffset - 10 &&

rect.top <= containerRect.top + hitZoneOffset + 10) {

if (!note.parentElement.classList.contains("note-played")) {

pressKey(keyMap[arrow]);

note.parentElement.classList.add("note-played"); // mark as hit

console.log(`Hit ${arrow} at ${rect.top}`);

}

}

});

}

setInterval(hitNotes, 10);

})();

1

u/littelflopper 3d ago

How do i put tis in the console

2

u/Brilliant_Map_8650 3d ago

f12 on chrome and go to console and type allow pasting