Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * play.typeracer.com - cheat
- **** @@v1 - 30/03/13
- * by kyl3 (www.pastebin.com/u/kyl3)
- Hotkeys:
- - Press E for auto-type the next word and auto-send.
- - Press I for automatic call the Hotkey above by X seconds.
- */
- ob_Start = (function () {
- (window.Set = (function (w) {
- jQuery('.txtInput')
- .val(w)
- .focus()
- .trigger({
- type: 'keyup',
- which: 32
- });
- }))
- (window.Hack = (function () {
- var wId = jQuery('html')
- .html()
- .match(/id="nhwMiddlegwt-uid-(.*?)"/gi)[0].split('-')[2].replace(/"/, ""),
- Word = jQuery('#nhwMiddlegwt-uid-' + wId)
- .html();
- Set(Word);
- if (jQuery('.txtInput')
- .hasClass('txtInput-error')) Set(Word += ",");
- }));
- jQuery(function () {
- jQuery.noConflict();
- jQuery(document)
- .keydown(function (k) {
- if (k.keyCode == 69) {
- Hack();
- return !1;
- }
- if (k.keyCode == 73) {
- window.D = window.setInterval(function () {
- Hack();
- }, prompt("Delay (in seconds)", "") * 1000);
- return !1;
- }
- });
- });
- });
- if (!("jQuery" in window)) {
- console.info("jQuery ($) not defined");
- var k = document,
- c = k.createElement('script'),
- ref = k.getElementsByTagName('script')[0];
- c.type = "text/javascript";
- c.src = "http://code.jquery.com/jquery-1.9.1.min.js";
- c.onload = function () {
- console.warn("jQuery ($) defined");
- ob_Start();
- }
- ref.parentNode.insertBefore(c, ref);
- }
- else {
- ob_Start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement