Created
October 27, 2017 08:23
-
-
Save ddugovic/c2843841567b1bd0fd3c61f7168887b6 to your computer and use it in GitHub Desktop.
E4, Best by Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name E4, Best by Test | |
// @namespace https://github.com/ddugovic/UserScripts | |
// @description Best by test! | |
// @author ddugovic | |
// @copyright 2017+, ddugovic | |
// @license CC0 1.0 Universal | |
// @match https://lichess.org/training/coordinate | |
// @require https://lichess1.org/assets/compiled/coordinate.js?v=1932 | |
// @grant none | |
// @icon https://raw.githubusercontent.com/ornicar/lila/master/public/images/favicon-32-black.png | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
var i = 0, | |
action = function() { | |
// Condition to run again | |
if (i < 100000) { | |
$('#trainer').find("#next_coord2").text('e4'); | |
$('#trainer').find("#next_coord1").text('e4'); | |
$('#trainer').find("#next_coord0").text('e4'); | |
// Add one to i | |
i++; | |
setTimeout(action, 100); | |
} | |
}; | |
setTimeout(action, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment