Adding cid to login page

This commit is contained in:
MrFry 2020-04-09 20:45:03 +02:00
parent a8e47bc73d
commit 7dc12dbfa0

View file

@ -21,7 +21,7 @@
// ==UserScript== // ==UserScript==
// @name Moodle/Elearning/KMOOC test help // @name Moodle/Elearning/KMOOC test help
// @version 2.0.1.0 // @version 2.0.1.1
// @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/*
@ -659,6 +659,14 @@
// : Loading {{{ // : Loading {{{
function HandleQminingSite (url) { function HandleQminingSite (url) {
try {
const idInput = document.getElementById('cid')
if (idInput) {
idInput.value = getVal('clientId')
}
} catch (e) {
console.info('Error filling client ID input', e)
}
try { try {
const sideLinks = document.getElementById('sideBarLinks') const sideLinks = document.getElementById('sideBarLinks')
if (!sideLinks) { if (!sideLinks) {