mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Showing text in greeing if new message is available for user
This commit is contained in:
parent
d71556b6a8
commit
4c90321380
1 changed files with 8 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
|||
// : Script header {{{
|
||||
// ==UserScript==
|
||||
// @name Moodle/Elearning/KMOOC test help
|
||||
// @version 2.1.0.0
|
||||
// @version 2.1.0.1
|
||||
// @description Online Moodle/Elearning/KMOOC test help
|
||||
// @author MrFry
|
||||
// @match https://elearning.uni-obuda.hu/main/*
|
||||
|
@ -193,6 +193,8 @@
|
|||
'Scriptet nem a qmining weboldalról raktad fel. Könnyebb kezelhetőség szempontjából kérlek onnan telepítsd. <a href="https://qmining.frylabs.net/manual.html#reinstallfromqmining">Részletes leírás</a>',
|
||||
versionUpdated: 'Verzió frissítve ',
|
||||
newVersionAvaible: 'Új verzió elérhető: ',
|
||||
userSpecifitMotdAvailable:
|
||||
'Új üzeneted van, kattints 📬-ra bal alul megtekintéséhez!',
|
||||
scriptName: 'Moodle/Elearning/KMOOC segéd ',
|
||||
userMOTD: 'Felhasználó MOTD (ezt csak te látod):\n',
|
||||
motd: 'MOTD:\n',
|
||||
|
@ -1242,6 +1244,11 @@
|
|||
greetMsg.push(texts.newVersionAvaible + lastestVersion)
|
||||
timeout = undefined
|
||||
}
|
||||
if (userSpecificMotd && !userSpecificMotd.seen) {
|
||||
timeout = null
|
||||
greetMsg.push(texts.userSpecifitMotdAvailable)
|
||||
timeout = undefined
|
||||
}
|
||||
if (newVersion) {
|
||||
greetMsg.push(texts.versionUpdated + info().script.version)
|
||||
setVal('lastVerson', info().script.version) // setting lastVersion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue