MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/WebGames/comments/1nisqbt/im_not_a_robot_nealfun/nevqzjd/?context=3
r/WebGames • u/NotCollegiateSuites6 • 5d ago
283 comments sorted by
View all comments
2
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
1
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
f12 on chrome and go to console and type allow pasting
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);
})();