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文件时,可以设置大小PS:
建议设置为
32x32https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/cursor#icon_size_limits
预览:

