Last active
June 23, 2022 03:38
-
-
Save hacker1024/7dd5987649bc814a5faf9fb2d35a5b5b to your computer and use it in GitHub Desktop.
A script to fix the Monash University Allocate+ Planner if it's broken after exams.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script can be pasted into the browser console, or used as a userscript with an extension like Tampermonkey. | |
// ==UserScript== | |
// @name Allocate+ post-exam fixer | |
// @version 0.1 | |
// @description Fixes the planner in Allocate+ if it's broken after exams. | |
// @author hacker1024 | |
// @match https://my-timetable.monash.edu/even/student* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=monash.edu | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const originalHasAlternativesActivities = window.hasAlternativesActivities; | |
window.hasAlternativesActivities = function (subjectCode, activityGroupCode, activityCode) { | |
if (activityCode == null) return false; | |
return originalHasAlternativesActivities(subjectCode, activityGroupCode, activityCode); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment