Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

Hack play.typeracer.com game 🏎️ 😎

πŸŽ‰πŸŽ‰ Simple script for hack typeracer game. Just for fun! πŸŽ‰πŸŽ‰

Paste the code in browser console when the countdown will be started.

var INTERVAL_IN_MILLISECOND = 118; //Change as you wish

var inputField = document.querySelector('.txtInput');
var DOMs = [...document.querySelector('.gameView').getElementsByTagName('span')];
DOMs = DOMs.splice(DOMs.length - 3, 3);
var fullSentence = (DOMs.map(DOM => DOM.textContent)).join('');

[...fullSentence].forEach((character, i) => {
	setTimeout(() => {
		inputField.value = inputField.value + character;
		inputField.dispatchEvent(new Event('keydown'));
	}, i * INTERVAL_IN_MILLISECOND);
})

About

Simple script for hack typeracer game. Just for fun!

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors