From 2f7d8b07419db0cd03ed9f16c95be3e49aa87854 Mon Sep 17 00:00:00 2001 From: Alexander Jeuk Date: Mon, 4 Feb 2019 15:14:52 +0100 Subject: [PATCH] Update Remove Moodle Answers.user.js --- Remove Moodle Answers.user.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Remove Moodle Answers.user.js b/Remove Moodle Answers.user.js index 44dc2b3..5c2ee78 100644 --- a/Remove Moodle Answers.user.js +++ b/Remove Moodle Answers.user.js @@ -6,12 +6,11 @@ // @match *://*/mod/quiz/review.php* // @grant none // @namespace https://github.com/Alex3434/RemoveMoodleAnswers -// @version 0.2 +// @version 0.3 // @grant none // @updateURL https://github.com/Alex3434/RemoveMoodleAnswers/raw/master/Remove%20Moodle%20Answers.user.js // ==/UserScript== - (function() { let correctElements = document.getElementsByClassName('icon fa fa-check text-success fa-fw'); for (let icon of correctElements) { @@ -33,4 +32,12 @@ for (let check of checkButtons) { check.removeAttribute("checked"); } + + let correctText = document.getElementsByClassName("outcome clearfix"); + for (let element of correctText) { + element.style.color = "#faf2cc"; + element.addEventListener('mouseover',function(){ element.style.color = "#8a6d3b";}); + element.addEventListener('mouseout', function(){ element.style.color = "#faf2cc";}); + } + })();