feat: custom cursor#977
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for custom cursors via the Custom_Corsur command, introducing the ani-cursor.js dependency to handle .ani files. Feedback on the implementation identifies a path resolution bug where the /game/ prefix is omitted for non-.ani cursors, a potential CSS injection vulnerability due to inserting unescaped values into a <style> element's innerHTML, and missing safety checks for parseInt results. A secure, refactored implementation is suggested to resolve these issues.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
目前使用的是 |
|
目前还有些特性未实现,考虑是否可以实现,如果无法实现,则放弃并保留基础自定义功能 |
issue: #975
支持:
.ani,.cur,png,svg等格式文件具体类型在https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/cursor

各个属性使用英文逗号分割。同时也同样支持设置多个鼠标状态,使用空格分割即可
注意:
当使用
ani文件时,xy值将当作宽高处理(即ani文件无法设置热点位置)预览:
