Skip to content

Instantly share code, notes, and snippets.

@ddugovic
Created October 27, 2017 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddugovic/c2843841567b1bd0fd3c61f7168887b6 to your computer and use it in GitHub Desktop.
Save ddugovic/c2843841567b1bd0fd3c61f7168887b6 to your computer and use it in GitHub Desktop.
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