Skip to content

Instantly share code, notes, and snippets.

@onyxiarivera
Created June 10, 2026 03:30
Show Gist options
  • Select an option

  • Save onyxiarivera/7df6bf650dc2ed26ed7bfdc27a4591dc to your computer and use it in GitHub Desktop.

Select an option

Save onyxiarivera/7df6bf650dc2ed26ed7bfdc27a4591dc to your computer and use it in GitHub Desktop.
Hide Last Year
// ==UserScript==
// @name Hide Last Year
// @namespace hidelastyear
// @version 2025-10-05
// @description Dude these haven't been assigned yet
// @author Onyxia Rivera
// @match https://canvas.tastafe.tas.edu.au/courses/*/grades
// @icon https://rollcall-syd.instructure.com/images/panda-cycle-loader.gif
// @grant none
// ==/UserScript==
(function() {
'use strict';
let assignments = document.getElementsByClassName("student_assignment");
assignments = [].slice.call(assignments);
assignments.forEach(function(value) {
if (value.innerHTML.includes("2025")) {
value.style = "visibility: collapse;";
console.log("Hidden " + value.id + " because unassigned");
}
})
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment