Made this script to autofill my mail adress in the davinki login page. Since password managers aren’t allowed to do that for some reason.

Made it with Tampermonkey.

// ==UserScript==
// @name         Davinki autofill
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://fs.kienict.nl/adfs/ls/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kienict.nl
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    const inputFieldValue = "99066439@mydavinci.nl";
    const inputFieldValueReplacementSpeed = 2.5; // seconds
 
    function findAndManipulateInputElement() {
        const inputElement = document.getElementById('userNameInput');
        const passwordInputElement = document.getElementById('passwordInput');
        console.log(passwordInputElement)
 
        // Check if the input element is found
        if (inputElement) {
            console.log('Input element found:', inputElement);
            inputElement.value = inputFieldValue;
            // Do something with the input element if needed
        }
    }
 
    function checkForElement() {
        const elements = document.querySelectorAll('*');
 
        for (const element of elements) {
            if (element.textContent.includes('Sign in')) {
                // Element found, call the findInputBox function
                findAndManipulateInputElement();
                return; // Stop searching once the element is found
            }
        }
 
        // Element not found
        console.log('Element not found');
    }
 
    // Check for the element every 5 seconds
    setInterval(checkForElement, inputFieldValueReplacementSpeed * 1000);
})();