Ekool login fixer

should replace the username type with the type email so firefox recognizes it as a login field and autofills password

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name Ekool login fixer
// @name:et Ekool login fixer
// @version 1.2
// @match https://login.ekool.eu/*
// @match https://ekool.eu/*
// @match https://www.ekool.eu/*
// @description should replace the username type with the type email so firefox recognizes it as a login field and autofills password
// @description:et Teeb ekooli login lehekülje korda ja laseb firefoxil autofillil ka kasutajanime/emaili formi sisse toppida (loodetavasti)
// @namespace https://greasyfork.org/users/1035267
// @require      https://greasyfork.org/scripts/383527-wait-for-key-elements/code/Wait_for_key_elements.js
// @require https://code.jquery.com/jquery-3.5.1.min.js
// @grant GM_xmlhttpRequest
// ==/UserScript==

//should replace the username type with the type email so firefox recognizes it as a login field and autofills password
function replaceField()
{
  document.querySelectorAll('input[type=username]')[0].type = 'email';
}
alert("BRUH");
waitForKeyElements(".v-text-field__slot",replaceField);