mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Adding cid to login page
This commit is contained in:
parent
a8e47bc73d
commit
7dc12dbfa0
1 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue