Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
E4, Best by Test
// ==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
You can’t perform that action at this time.