Quiz attempt review pages include elements such as feedback, correct answer, comment, response history, quiz navigation block, other blocks if any, gear icon, page header and footer, etc. The display of these elements is not controlled by the review options in the quiz settings. They are always displayed.
To hide these elements, you can do the following. Note that you don't need to have access to the administration of the Moodle site.
-
Install the Tampermonkey browser extension from https://www.tampermonkey.net/ ↗. Use the stable version and make sure the version matches your browser (Chrome, Microsoft Edge,
Safari, etc.). This extension has over 10 million users and a rating of 4.7/5 for 68,000 reviews on the Chrome web store. You can install it with confidence.
If you are using Chrome, you can also install the Tampermonkey extension ↗ from the Chrome web store.
-
Click on the following link to get my script*: https://gist.github.com/dbauer-ets/01ba8b1ddd3aa66d1c28fdd773e93b8c/raw/a807860e6436d612d39d821a65cfcdeea0c2bcdc/Moodle-Edit-quiz-attempt-review-page.user.js ↗.
-
Click on the "Install" button.
-
Navigate to the review page for the desired quiz attempt.
-
In the browser extension menu, click the Tampermonkey icon and toggle off the "Moode - Edit quiz attempt review page" userscript and reload the page. Note that this userscript will only appear on the quiz attempt review pages.
-
For Moodle 3.10 and earlier, select either "Show all questions on one page" (preferred) or "Show one page at a time" in the quiz navigation block. This option was removed in Moodle 3.11 and all questions are always displayed on one page (so it seems).
-
In the browser's extension menu, click the Tampermonkey icon and toggle on the "Moode - Edit quiz attempt review page" userscript and reload the page. All elements are hidden except info blocks, questions and student answers.
-
Print the page using the browser's print command.
-
Click the Tampermonkey icon and toggle off the "Moode - Edit quiz attempt review page" userscript and reload the page. Everything is back to normal.
* The script is as follows:
// ==UserScript==
// @name Moodle - Edit quiz attempt review page
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove all elements except info blocks, questions and student's answers
// @author © 2021 Dominique Bauer - CC0 1.0 Universal Public Domain Dedication
// @match */mod/quiz/review.php*
// @grant none
// ==/UserScript==
var styleSheet = "" +
// Hide fixe top menu band
".fixed-top {display: none;}" +
// Hide block icon (Moodle 3.11)
".drawer-right-toggle {display: none;}" +
// Hide gear icon
"#region-main-settings-menu, .region_main_settings_menu_proxy, .dropdown {display: none;}" +
// Hide feedback, comment, response history
".outcome, .comment, .history {display: none;}" +
// Hide navigation
".activity-navigation {display: none;}" +
// Hide blocks
".block-region {display: none;}" +
// Hide submit button
".submitbtns {display: none;}" +
// Hide header and footer
"header#page-header, footer#page-footer {display: none;}" +
// For some reason, specific feedbacks do not "hide",
// so hide them by placing them in the background.
".specificfeedback {z-index: -10000}" +
// Remove the browser vertical scroll bar
"body {height: 10000px; overflow-y: hidden;}" +
"";
(function() {
var s = document.createElement('style');
s.type = "text/css";
s.innerHTML = styleSheet;
(document.head || document.documentElement).appendChild(s);
})();