explaingit

hourizon/sysu-lms-script-version-2-

13JavaScriptAudience · generalComplexity · 2/5LicenseSetup · easy

TLDR

A browser userscript for Sun Yat-sen University's online learning system that fakes video progress, auto-advances lessons, and calls an AI API to answer quizzes automatically.

Mindmap

mindmap
  root((SYSU LMS Script))
    What it does
      Fake video progress
      Auto-advance lessons
      AI quiz answering
      Skip discussions
    Two Versions
      Tampermonkey full
      Browser console simple
    AI Quiz Config
      OpenAI-compatible API
      DeepSeek by default
      Custom model or URL
    Tech Stack
      JavaScript
      Tampermonkey
      OpenAI API
    Setup
      Edit API key block
      Local storage config
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Automatically complete SYSU online course videos without manually watching them through the browser.

USE CASE 2

Have an AI model answer course quizzes automatically by connecting any OpenAI-compatible API endpoint.

USE CASE 3

Run the lightweight console version to fake video progress without installing any browser extension.

Tech stack

JavaScriptTampermonkeyOpenAI API

Getting it running

Difficulty · easy Time to first run · 30min

The full version requires the Tampermonkey browser extension and an API key for an OpenAI-compatible service such as DeepSeek.

Free to use and modify, but any software you distribute that builds on this must also be released as open source under the same GPL license.

In plain English

This is a browser userscript designed for the online learning management system used by Sun Yat-sen University (SYSU) in China. The README is written in Chinese. The script automates parts of the course-completion process on that platform so students do not have to watch videos or navigate manually. The script has four main behaviors. It fakes video-watching progress so the platform marks courses as complete without the user sitting through them. It automatically advances to the next lesson after each section finishes. When a quiz appears, it calls an external AI language model through an API and submits the generated answers automatically. If the platform shows a discussion page, the script skips it. There are two versions. The full version installs as a userscript through a browser extension called Tampermonkey, which runs it automatically whenever the LMS is open. This version includes the AI-powered quiz answering. The simpler console version is pasted directly into the browser developer tools each time, it handles video progress faking and auto-navigation but does not answer quizzes automatically and requires a manual step on each new video page. The AI quiz feature connects to any OpenAI-compatible API endpoint. The default configuration points to DeepSeek's service, but users can change the URL, model name, and API key by editing a short block at the top of the script, or by setting values in the browser's local storage. The project is built on an earlier open-source script from a different author and is released under the GPL-3.0 license.

Copy-paste prompts

Prompt 1
I installed the SYSU LMS userscript via Tampermonkey. How do I configure my DeepSeek API key so the script can answer quizzes automatically when they appear?
Prompt 2
I want to use the console version of the SYSU LMS script without Tampermonkey. What exactly do I paste into the browser console and what does it handle on its own versus what I need to do manually?
Prompt 3
The SYSU LMS script defaults to DeepSeek for quiz answering. How do I switch it to use a different OpenAI-compatible provider and model by editing the config block?
Open on GitHub → Explain another repo

← hourizon on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.