Changed menu button id, incremented version

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-03-06 08:44:26 +01:00
parent a46bc362ee
commit 4ed1fab920
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@
// ==UserScript== // ==UserScript==
// @name Moodle/Elearning/KMOOC test help // @name Moodle/Elearning/KMOOC test help
// @version 1.6.2.5 // @version 1.6.2.6
// @description Online Moodle/Elearning/KMOOC test help // @description Online Moodle/Elearning/KMOOC test help
// @author YourFriendlyNeighborhoodDealer // @author YourFriendlyNeighborhoodDealer
// @match https://elearning.uni-obuda.hu/main/* // @match https://elearning.uni-obuda.hu/main/*

View file

@ -1044,7 +1044,7 @@ function HandleUI(url, count, subjCount) {
if (!newVersion && !loaded) // -------------------------------------------------------------------------------------------------------------- if (!newVersion && !loaded) // --------------------------------------------------------------------------------------------------------------
{ {
greetMsg = greetMsg =
"Hiba a @resource tagnál, vagy a fileval van gond! (Lehet át lett helyezve, vagy üres.) Vagy válaszd a netes adatok használatát menüben. Ellenőrizd az elérési utat, vagy hogy a Tampermonkey bővítmény eléri-e a fájlokat. Ha netes forrást használsz, akkor nem elérhető a szerver! Segítségért kattints!"; "Hiba a @resource tagnál, vagy a fileval van gond! (Lehet át lett helyezve, vagy üres, vagy nincs tárgy kiválasztva) Vagy válaszd a netes adatok használatát menüben. Ellenőrizd az elérési utat, vagy hogy a Tampermonkey bővítmény eléri-e a fájlokat. Ha netes forrást használsz, akkor nem elérhető a szerver! Segítségért kattints!";
} }
var showSplash = (GM_getValue("showSplash") == undefined) || GM_getValue("showSplash"); // getting value, if splash screen should be shown. Its true, if its undefined, or true var showSplash = (GM_getValue("showSplash") == undefined) || GM_getValue("showSplash"); // getting value, if splash screen should be shown. Its true, if its undefined, or true
// no new version, everything loaded, and show splash is enabled. otherwise something happened, so showing it // no new version, everything loaded, and show splash is enabled. otherwise something happened, so showing it
@ -1760,7 +1760,6 @@ function ShowMenu() {
// mainDiv.style.left = (window.innerWidth - width) / 2 + 'px'; // mainDiv.style.left = (window.innerWidth - width) / 2 + 'px';
var menuButtonDiv = document.createElement("div"); var menuButtonDiv = document.createElement("div");
menuButtonDiv.setAttribute("id", "HelperMenuButton");
menuButtonDiv.style.width = buttonWidth + 'px'; menuButtonDiv.style.width = buttonWidth + 'px';
menuButtonDiv.style.height = buttonHeight + 'px'; menuButtonDiv.style.height = buttonHeight + 'px';
menuButtonDiv.style.top = (window.innerHeight - buttonHeight * 1.5) + 'px'; menuButtonDiv.style.top = (window.innerHeight - buttonHeight * 1.5) + 'px';
@ -1785,6 +1784,7 @@ function ShowMenu() {
menuButton.style.height = buttonHeight - 20 + 'px'; menuButton.style.height = buttonHeight - 20 + 'px';
menuButton.style.background = "#222d32"; // background color menuButton.style.background = "#222d32"; // background color
menuButton.style.color = "#ffffff"; // background color menuButton.style.color = "#ffffff"; // background color
menuButton.setAttribute("id", "HelperMenuButton");