lred redirect to website db param

This commit is contained in:
mrfry 2021-04-25 11:06:07 +02:00
parent 9687a1157a
commit 433057b908

View file

@ -46,7 +46,7 @@
// : Script header {{{ // : Script header {{{
// ==UserScript== // ==UserScript==
// @name Moodle/Elearning/KMOOC test help // @name Moodle/Elearning/KMOOC test help
// @version 2.1.1.4 // @version 2.1.1.5
// @description Online Moodle/Elearning/KMOOC test help // @description Online Moodle/Elearning/KMOOC test help
// @author MrFry // @author MrFry
// @match https://elearning.uni-obuda.hu/* // @match https://elearning.uni-obuda.hu/*
@ -2574,6 +2574,7 @@
Object.keys(e).forEach(key => { Object.keys(e).forEach(key => {
if (e[key]) { if (e[key]) {
queries.push(`${key}=${encodeURIComponent(e[key])}`) queries.push(`${key}=${encodeURIComponent(e[key])}`)
queries.push('db=all')
} }
}) })
queries.push('version=' + encodeURIComponent(info().script.version)) queries.push('version=' + encodeURIComponent(info().script.version))