Automatically request analysis when going to the analysis page.
// ==UserScript==
// @name Lichess auto analyse
// @version 0.2
// @description Automatically request analysis when going to the analysis page.
// @author anakojm
// @license GNU GPL V3
// @include /lichess\.org/\w{8}(|/white|/black)$/
// @grant none
// @namespace https://greasyfork.org/users/933055
// ==/UserScript==
function auto_analyse() {
var button = document.querySelector("form.future-game-analysis").querySelector('button[type=submit]');
if (button) {
button.click();
}
}
auto_analyse();