Skip to content

Instantly share code, notes, and snippets.

@sidbhatt11
Last active October 23, 2018 07:31
Show Gist options
  • Save sidbhatt11/9781e52a478eb65d5093b4deca9914d9 to your computer and use it in GitHub Desktop.
Save sidbhatt11/9781e52a478eb65d5093b4deca9914d9 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hide-Sidebar in Moodle
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Siddharth Bhatt
// @match https://moodle.vle.monash.edu/grade/report/grader/index.php*
// @match https://moodle.vle.monash.edu/mod/assign/view.php*action=grading*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Hide the side-bar on left while grading in Moodle.
window.onload = function () {
document.querySelector("aside#block-region-side-pre").remove();
document.querySelector("section#region-main").classList = ["span12"];
}
})();
@sidbhatt11
Copy link
Author

If you are someone who gets to grade students in Moodle at Monash University, you are probably super-annoyed by the sidebar on left.
Use this script with Tampermonkey to hide the sidebar while grading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment