Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kennethkn/useful-userscripts-hku

JS scripts to fix annoyances on HKU websites
https://github.com/kennethkn/useful-userscripts-hku

hku javascript university-of-hong-kong userscript userscript-collection

Last synced: 17 days ago
JSON representation

JS scripts to fix annoyances on HKU websites

Awesome Lists containing this project

README

        

# 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](https://apps.apple.com/app/userscripts/id1463298887) |
| Firefox | Violentmonkey | [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/violentmonkey/) |
| Google Chrome | Violentmonkey | [Chrome Web Store](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag) |
| Microsoft Edge | Violentmonkey | [Microsoft Edge Addons](https://microsoftedge.microsoft.com/addons/detail/violentmonkey/eeagobfjdenkkddmbclomhiblgggliao) |

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.
* [HKUL Auth Autofill Fix.user.js](https://raw.githubusercontent.com/kennethkn/useful-userscripts-for-hku-students/main/HKUL%20Auth%20Autofill%20Fix.user.js)
* [Moodle Hide Courses.user.js](https://raw.githubusercontent.com/kennethkn/useful-userscripts-for-hku-students/main/Moodle%20Hide%20Courses.user.js)
* [Moodle Stay as Current User.user.js](https://raw.githubusercontent.com/kennethkn/useful-userscripts-for-hku-students/main/Moodle%20Stay%20as%20Current%20User.user.js)
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 :thumbsup:

## 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!