mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Redirect when user opens legacy page after some errors
This commit is contained in:
6
main.js
6
main.js
@@ -37,7 +37,7 @@ const motdShowCount = 3; /* Ammount of times to show motd */
|
|||||||
var motd = "";
|
var motd = "";
|
||||||
var lastestVersion = "";
|
var lastestVersion = "";
|
||||||
|
|
||||||
const minMatchAmmount = 55; /* Minimum ammount to consider that two questions match during answering */
|
const minMatchAmmount = 15; /* Minimum ammount to consider that two questions match during answering */
|
||||||
const minResultMatchPercent = 99; /* Minimum ammount to consider that two questions match during saving */
|
const minResultMatchPercent = 99; /* Minimum ammount to consider that two questions match during saving */
|
||||||
const lengthDiffMultiplier = 10; /* Percent minus for length difference */
|
const lengthDiffMultiplier = 10; /* Percent minus for length difference */
|
||||||
|
|
||||||
@@ -673,7 +673,7 @@ function Main() {
|
|||||||
m: "Fatál error. Check console (f12). Kattints az üzenetre az összes kérdés/válaszért manuális kereséshez!",
|
m: "Fatál error. Check console (f12). Kattints az üzenetre az összes kérdés/válaszért manuális kereséshez!",
|
||||||
isSimple: true
|
isSimple: true
|
||||||
}, undefined, function() {
|
}, undefined, function() {
|
||||||
GM_openInTab(serverAdress + 'legacy', {
|
GM_openInTab(serverAdress + 'lred', {
|
||||||
active: true
|
active: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1210,7 +1210,7 @@ function ShowAnswers(answers) {
|
|||||||
m: "Nincs találat :( Kattints az üzenetre az összes kérdés/válaszért manuális kereséshez! Előfordulhat, hogy a tárgyat nem válsztottad ki a menüben.",
|
m: "Nincs találat :( Kattints az üzenetre az összes kérdés/válaszért manuális kereséshez! Előfordulhat, hogy a tárgyat nem válsztottad ki a menüben.",
|
||||||
isSimple: true
|
isSimple: true
|
||||||
}, undefined, function() {
|
}, undefined, function() {
|
||||||
GM_openInTab(serverAdress + 'legacy', {
|
GM_openInTab(serverAdress + 'lred', {
|
||||||
active: true
|
active: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user