Skip to content

kennethkn/useful-userscripts-hku

Repository files navigation

Useful Userscipts for HKU Students

A collection of userscripts that fix annoyances on HKU websites

Info

HKUL Auth Autofill Fix.user.js: Works around a Safari browser issue on the HKU Libraries Login Page where login fields are misidentified as registration fields, disrupting the password autofill feature.

Moodle Hide Courses.user.js: Allows you to hide inactive courses from the homepage and sidebar of Moodle.

Moodle Stay as Current User.user.js: Automatically clicks "Cancel" when Moodle displays the "you need to log out before logging in as a different user" prompt.

Usage

Step 1: Install a Userscript Manager

Userscript managers come in the form of browser extensions.

I recommend the following open-source extensions:

Browser Extension Name Installation Link
Safari Userscripts App Store
Firefox Violentmonkey Firefox Add-ons
Google Chrome Violentmonkey Chrome Web Store
Microsoft Edge Violentmonkey Microsoft Edge Addons

Please make sure the extension is enabled before proceeding to the next step.

Step 2: Install Desired Userscripts

  1. Click the links below for the userscripts you wish to install.
  2. Navigate to the browser tab where the link opened.
  3. Click on the extension icon for the userscript manager.
  4. The extension should notify you that it has detected a userscript. Click install.
  5. Once done, you may test it on relevant websites to ensure it’s working properly 👍

Contributing

Feel free to contribute by creating a pull request or opening an issue. If you have any ideas for new userscripts, please let me know!