Skip to content

New /web/contest/ pages break XMOJ-Script navigation and layout #1029

Description

@boomzero

Problem

The new XMOJ contest pages under https://www.xmoj.tech/web/contest/ are incompatible with XMOJ-Script following an XMOJ update.

Reproduction

  1. Enable XMOJ-Script (current repository version: 3.7.1).
  2. Open the new contest area at https://www.xmoj.tech/web/contest/.
  3. Open a contest problem with the script's monochrome styling enabled.

Actual behavior

The user supplied a screenshot of problem A, “动物园”, showing a broken navigation layout: the raw “Toggle navigation” button is visible beside 小明的OJ, while monochrome styling is applied to the problem tabs and content. The expected enhanced navigation is missing. The screenshot was supplied in the development conversation; it is not hosted at a public URL.

Expected behavior

The updated contest pages should retain working navigation and layout and support applicable XMOJ-Script enhancements, including when navigating between contest problems.

Initial investigation

  • The new entry page is a client-rendered application: its HTML contains #app and loads /web/assets/index-BcirNBsv.js as a module.
  • Existing contest-specific logic in XMOJ.user.js dispatches on /contest.php; problem handling dispatches on /problem.php.
  • The script performs legacy DOM transformations and stylesheet replacement. Compatibility with asynchronous rendering and the new route structure needs investigation.

No fix had been made when this issue was filed. The exact failure mechanism and affected feature scope are still being investigated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions