From ff626c9fd5d4c9ca793b6dc1fd9facf9088189b5 Mon Sep 17 00:00:00 2001 From: mrfry Date: Tue, 16 Feb 2021 12:32:14 +0100 Subject: [PATCH] firefox opacity fix --- stable.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stable.user.js b/stable.user.js index afc0810..ff1d2fe 100755 --- a/stable.user.js +++ b/stable.user.js @@ -49,8 +49,7 @@ // @version 2.1.0.1 // @description Online Moodle/Elearning/KMOOC test help // @author MrFry -// @match https://elearning.uni-obuda.hu/main/* -// @match https://elearning.uni-obuda.hu/kmooc/* +// @match https://elearning.uni-obuda.hu/* // @match https://mooc.unideb.hu/* // @match https://itc.semmelweis.hu/moodle/* // @match https://oktatas.mai.kvk.uni-obuda.hu/* @@ -1255,6 +1254,7 @@ } if (!installedFromCorrectSource(correctSource)) { greetMsg.push(texts.reinstallFromCorrectSource) + console.log(`update url:${info().script.updateURL}`) } if (showMOTD) { greetMsg.push(texts.motd + motd) @@ -1563,8 +1563,8 @@ return } - let currOpacity = getVal(`${elem.id}_opacity`) - elem.addEventListener('mousewheel', e => { + let currOpacity = getVal(`${elem.id}_opacity`) || 1 + elem.addEventListener('wheel', e => { e.preventDefault() const isUp = e.deltaY < 0 if (isUp) {