REVISION (click here *)
I developed a basic auto login script using Tampermonkey for
// ==UserScript==
// @name 7Mind User Login Website
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://app.7mind.de/*
// ==/UserScript==
let emailAddress = document.getElementsByName('email');
emailAddress[1].value = "x@y"
let password = document.getElementsByName('password');
password[1].value = "pass"
let loginButton = document.getElementsByName('submit');
loginButton[0].click();
When using this script, I encountered the following error in Chrome console:
POST https://api.7mind.de/v1/login 404
Even trying to target the login button by class resulted in the same issue:
let loginButton = document.getElementsByClassName("_2N3ybblop__YQd82Xe-Uw1");
Despite my efforts, the script failed to insert the credentials on the login page.
*I noticed that if I omit the line loginButton[0].click(), the credentials are successfully added but logging in manually still throws an error.
Many online resources suggest that such straightforward login scripts should function properly.
Could this be a new security measure in Chrome preventing my login automation?