codef0rmer / typeracer-bot Goto Github PK
View Code? Open in Web Editor NEWA bookmarklet which can help you winning a typing race.
A bookmarklet which can help you winning a typing race.
1. Create a new bookmark and add that javascript into url field. 2. Goto play.typeracer.com and click on 'Enter a Typing race'. 3. Once the race is started, select the bookmarklet.
I found this isn't working for me. So I made some of my own.
function getScript(url, success) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0],
done = false;
script.onload = script.onreadystatechange = function () {
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
done = true;
success();
script.onload = script.onreadystatechange = null;
head.removeChild(script);
}
};
head.appendChild(script);
}
getScript('http://code.jquery.com/jquery-latest.min.js', function () {
return showMsg();
});
function showMsg() {
}
var i = 0;
function hackit() {
var keyup = jQuery.Event('keyup');
keyup.which = 32;
var arr = $('div.nonHideableWords').text();
var arrtxt = arr.split(' ');
$('.txtInput').val(arrtxt[i]);
i++;
setTimeout('hackit()', 300);
}
setTimeout('hackit()', 11*1000);
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
Just you have to keep spamming space.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.