{"id":20839349,"url":"https://github.com/kennethkn/useful-userscripts-hku","last_synced_at":"2026-04-19T21:07:50.937Z","repository":{"id":199189247,"uuid":"702317843","full_name":"kennethkn/useful-userscripts-hku","owner":"kennethkn","description":"JS scripts to fix annoyances on HKU websites","archived":false,"fork":false,"pushed_at":"2024-03-29T16:51:14.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T07:23:29.878Z","etag":null,"topics":["hku","javascript","university-of-hong-kong","userscript","userscript-collection"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kennethkn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-09T04:53:31.000Z","updated_at":"2025-10-18T04:50:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"56ec8624-899c-48f9-8fb5-2517e5f19000","html_url":"https://github.com/kennethkn/useful-userscripts-hku","commit_stats":null,"previous_names":["kennethkn/useful-userscripts-for-hku-students","kennethkn/useful-userscripts-hku"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kennethkn/useful-userscripts-hku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethkn%2Fuseful-userscripts-hku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethkn%2Fuseful-userscripts-hku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethkn%2Fuseful-userscripts-hku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethkn%2Fuseful-userscripts-hku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kennethkn","download_url":"https://codeload.github.com/kennethkn/useful-userscripts-hku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethkn%2Fuseful-userscripts-hku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32022601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hku","javascript","university-of-hong-kong","userscript","userscript-collection"],"created_at":"2024-11-18T01:13:22.527Z","updated_at":"2026-04-19T21:07:50.892Z","avatar_url":"https://github.com/kennethkn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Useful Userscipts for HKU Students\n\nA collection of userscripts that fix annoyances on HKU websites\n\n## Info\n\n`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.\n\n`Moodle Hide Courses.user.js`: Allows you to hide inactive courses from the homepage and sidebar of Moodle.\n\n`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.\n\n## Usage\n\n### Step 1: Install a Userscript Manager\n\nUserscript managers come in the form of browser extensions.\n\nI recommend the following open-source extensions:\n\n| Browser | Extension Name | Installation Link |\n| - | - | - |\n| Safari | Userscripts | [App Store](https://apps.apple.com/app/userscripts/id1463298887) |\n| Firefox | Violentmonkey | [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/violentmonkey/) |\n| Google Chrome | Violentmonkey | [Chrome Web Store](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag) |\n| Microsoft Edge | Violentmonkey | [Microsoft Edge Addons](https://microsoftedge.microsoft.com/addons/detail/violentmonkey/eeagobfjdenkkddmbclomhiblgggliao) |\n\nPlease make sure the extension is enabled before proceeding to the next step.\n\n### Step 2: Install Desired Userscripts\n\n1. Click the links below for the userscripts you wish to install.\n    * [HKUL Auth Autofill Fix.user.js](https://raw.githubusercontent.com/kennethkn/useful-userscripts-for-hku-students/main/HKUL%20Auth%20Autofill%20Fix.user.js)\n    * [Moodle Hide Courses.user.js](https://raw.githubusercontent.com/kennethkn/useful-userscripts-for-hku-students/main/Moodle%20Hide%20Courses.user.js)\n    * [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)\n2. Navigate to the browser tab where the link opened.\n3. Click on the extension icon for the userscript manager.\n4. The extension should notify you that it has detected a userscript. Click install.\n5. Once done, you may test it on relevant websites to ensure it’s working properly :thumbsup:\n\n## Contributing\n\nFeel free to contribute by creating a pull request or opening an issue. If you have any ideas for new userscripts, please let me know!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethkn%2Fuseful-userscripts-hku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennethkn%2Fuseful-userscripts-hku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethkn%2Fuseful-userscripts-hku/lists"}