From 7dc12dbfa0343138237518435224f5ae34b3cff6 Mon Sep 17 00:00:00 2001 From: MrFry Date: Thu, 9 Apr 2020 20:45:03 +0200 Subject: [PATCH] Adding cid to login page --- stable.user.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stable.user.js b/stable.user.js index 031b255..f7c348d 100755 --- a/stable.user.js +++ b/stable.user.js @@ -21,7 +21,7 @@ // ==UserScript== // @name Moodle/Elearning/KMOOC test help -// @version 2.0.1.0 +// @version 2.0.1.1 // @description Online Moodle/Elearning/KMOOC test help // @author MrFry // @match https://elearning.uni-obuda.hu/main/* @@ -659,6 +659,14 @@ // : Loading {{{ 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 { const sideLinks = document.getElementById('sideBarLinks') if (!sideLinks) {