Skip to content

Instantly share code, notes, and snippets.

@hacker1024
Last active June 23, 2022 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacker1024/7dd5987649bc814a5faf9fb2d35a5b5b to your computer and use it in GitHub Desktop.
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 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