diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..c46a375
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,6 @@
+1.6.0.0:
+ Added JSON data format
+ Old one should still work
+1.6.1.0:
+ Changed server domain name
+ Fixed not found data file "brick"
diff --git a/README.md b/README.md
index b0f9a03..b41bf77 100644
--- a/README.md
+++ b/README.md
@@ -9,4 +9,5 @@ This userscript shows help during solving Moodle/Elearning/KMOOC tests online.
-Server repository link
\ No newline at end of file
+Greasyfork link Navigate to here, if you want to install the script!
+Server repository link
diff --git a/frame.js b/frame.js
index df69da6..d1b41fb 100644
--- a/frame.js
+++ b/frame.js
@@ -21,7 +21,7 @@
// ==UserScript==
// @name Moodle/Elearning/KMOOC test help
-// @version 1.6.0.0
+// @version 1.6.1.0
// @description Online Moodle/Elearning/KMOOC test help
// @author YourFriendlyNeighborhoodDealer
// @match https://elearning.uni-obuda.hu/main/*
diff --git a/main.js b/main.js
index 13a9e3a..a654af3 100644
--- a/main.js
+++ b/main.js
@@ -25,9 +25,9 @@
var data; // all data, which is in the resource txt
var addEventListener; // add event listener function
-var lastChangeLog =
+const lastChangeLog =
'- Performance javítások\n - Összes tárgy letiltása alapból, mert sok tárgy van, és belassulhat :c\n- Az azért jó, hogy sok tárgy van c:\nEllenőrizd, hogy mely tárgyak aktívak a menüben!';
-var serverAdress = "https://questionmining.tk/";
+const serverAdress = "https://qmining.tk/";
// forcing pages for testing. unless you test, do not set these to true!
// only one of these should be true for testing
@@ -37,11 +37,11 @@ const forceDefaultPage = false;
const logElementGetting = false;
const log = false;
-var motdShowCount = 3;
+const motdShowCount = 3;
var motd = "";
-var lastestVersion = "";
+var lastestVersion = ""; // TODO: if undefined no new verion
-var minMatchAmmount = 49;
+const minMatchAmmount = 49;
//: Class descriptions {{{
class Question {
@@ -701,9 +701,7 @@ function ReadFile(cwith) {
try {
resource = GM_getResourceText("data"); // getting data from txt
if (resource == null) {
- throw {
- message: "data file not found"
- };
+ return; // TODO show some msg what happened
}
if (EmptyOrWhiteSpace(resource)) {
throw {
@@ -1752,7 +1750,7 @@ function ShowMenuList() {
var noDataRow = tbl.insertRow();
var noDataRowCell = noDataRow.insertCell();
- var textBox = CreateNodeWithText(noDataRowCell, "A kérdések filet nem lehetett beolvasni.");
+ var textBox = CreateNodeWithText(noDataRowCell, "A kérdéseket nem lehetett beolvasni. Vagy nem elérhető a szerver, vagy ha offline módot használsz, akkor hibás a fájl elérési útja, vagy a fájl maga. Olvasd el a manualt!");
textBox.style.margin = fiveMargin; // fancy margin
}