mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Set pw input type to text, to prevent autofills
This commit is contained in:
parent
6a638e0f78
commit
a25e64189e
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Moodle/Elearning/KMOOC test help
|
// @name Moodle/Elearning/KMOOC test help
|
||||||
// @version 2.0.1.2
|
// @version 2.0.1.3
|
||||||
// @description Online Moodle/Elearning/KMOOC test help
|
// @description Online Moodle/Elearning/KMOOC test help
|
||||||
// @author MrFry
|
// @author MrFry
|
||||||
// @match https://elearning.uni-obuda.hu/main/*
|
// @match https://elearning.uni-obuda.hu/main/*
|
||||||
|
@ -1559,12 +1559,11 @@
|
||||||
const loginButton = document.createElement('button')
|
const loginButton = document.createElement('button')
|
||||||
loginButton.innerText = 'Login'
|
loginButton.innerText = 'Login'
|
||||||
const loginInput = document.createElement('input')
|
const loginInput = document.createElement('input')
|
||||||
loginInput.type = 'password'
|
loginInput.type = 'text'
|
||||||
loginInput.style.width = '400px'
|
loginInput.style.width = '400px'
|
||||||
loginInput.style.textAlign = 'center'
|
loginInput.style.textAlign = 'center'
|
||||||
if (getVal('clientId') && getVal('clientId')[0] !== 0) {
|
if (getVal('clientId') && getVal('clientId')[0] !== 0) {
|
||||||
loginInput.value = getVal('clientId') || ''
|
loginInput.value = getVal('clientId') || ''
|
||||||
loginInput.type = 'text'
|
|
||||||
}
|
}
|
||||||
loginDiv.appendChild(loginInput)
|
loginDiv.appendChild(loginInput)
|
||||||
loginDiv.appendChild(loginButton)
|
loginDiv.appendChild(loginButton)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue