mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
todo removes, minor tidy
This commit is contained in:
parent
ba9f812041
commit
05508571e6
2 changed files with 3 additions and 7 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 01b971b4c875a4be8b7a8c6dcdd58b2d83761f9d
|
Subproject commit 5dac788b18b7240a4194a2a37ecbee857292800d
|
|
@ -41,10 +41,7 @@
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
//
|
//
|
||||||
// TODO:
|
// TODO:
|
||||||
// test select boxes on result page
|
|
||||||
// grabboxes test on quiz page
|
// grabboxes test on quiz page
|
||||||
// image in questions sorted ! deleted ?
|
|
||||||
// image in question in general
|
|
||||||
|
|
||||||
(function() { // eslint-disable-line
|
(function() { // eslint-disable-line
|
||||||
// GM functions, only to disable ESLINT errors
|
// GM functions, only to disable ESLINT errors
|
||||||
|
@ -66,7 +63,7 @@
|
||||||
// forcing pages for testing. unless you test, do not set these to true!
|
// forcing pages for testing. unless you test, do not set these to true!
|
||||||
// only one of these should be true for testing
|
// only one of these should be true for testing
|
||||||
const forceTestPage = false
|
const forceTestPage = false
|
||||||
const forceResultPage = true
|
const forceResultPage = false
|
||||||
const forceDefaultPage = false
|
const forceDefaultPage = false
|
||||||
const logElementGetting = false
|
const logElementGetting = false
|
||||||
const log = true
|
const log = true
|
||||||
|
@ -1448,8 +1445,7 @@
|
||||||
sentData.data = newQuestions
|
sentData.data = newQuestions
|
||||||
sentData.version = info().script.version
|
sentData.version = info().script.version
|
||||||
sentData.id = GetId()
|
sentData.id = GetId()
|
||||||
console.log('SENT DATA') // TODO
|
Log('SENT DATA', sentData)
|
||||||
console.log(sentData)
|
|
||||||
SendXHRMessage('datatoadd=' + JSON.stringify(sentData))
|
SendXHRMessage('datatoadd=' + JSON.stringify(sentData))
|
||||||
sendSuccess = true
|
sendSuccess = true
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue