Problem
The new XMOJ contest pages under https://www.xmoj.tech/web/contest/ are incompatible with XMOJ-Script following an XMOJ update.
Reproduction
- Enable XMOJ-Script (current repository version: 3.7.1).
- Open the new contest area at https://www.xmoj.tech/web/contest/.
- 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.
Problem
The new XMOJ contest pages under https://www.xmoj.tech/web/contest/ are incompatible with XMOJ-Script following an XMOJ update.
Reproduction
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
#appand loads/web/assets/index-BcirNBsv.jsas a module.XMOJ.user.jsdispatches on/contest.php; problem handling dispatches on/problem.php.No fix had been made when this issue was filed. The exact failure mechanism and affected feature scope are still being investigated.