Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 17 additions & 141 deletions .github/ISSUE_TEMPLATE/01_bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,17 @@ body:
- type: markdown
attributes:
value: |
感谢反馈。请尽量填写完整,尤其是 **ScriptCat 版本、浏览器版本、复现步骤、日志、相关脚本链接/导出文件**。
如果是某个用户脚本在 ScriptCat 不兼容,但在 Tampermonkey/Violentmonkey 正常,请改用 “Userscript Compatibility” 模板。
感谢反馈。请尽量写清复现步骤和版本信息。

如果是某个用户脚本在 ScriptCat 不兼容、但在 Tampermonkey/Violentmonkey 正常,请改用 “Userscript 兼容性问题” 模板。

- type: checkboxes
id: precheck
attributes:
label: 提交前检查
options:
- label: 我已经搜索过现有 issues,确认不是重复问题
required: true
- label: 我已经尽量使用最新 stable 或 beta 版本测试
- label: 我已经搜索过现有 issues,并尽量用最新 stable 或 beta 版本确认问题仍然存在
required: true
- label: 这不是安全漏洞;安全漏洞会通过 Security Advisory 私密提交
required: true

- type: dropdown
id: bug-area
attributes:
label: 问题类型
multiple: true
options:
- 扩展安装 / 更新 / 卸载
- 脚本安装 / 更新 / 导入 / 导出
- 脚本执行 / 注入 / 匹配规则
- GM API / CAT API
- 后台脚本 / 定时脚本 / offscreen
- Cloud Sync / 备份 / 恢复 / WebDAV / Google Drive / OneDrive
- Popup / Options 管理页 / UI
- 内置编辑器 / Monaco / ESLint
- 日志 / 调试 / 错误提示
- 移动端 / 小屏适配
- 隐身模式 / 多窗口 / 多标签页
- 性能 / 内存 / 存储
- 其他
validations:
required: true

- type: textarea
id: summary
Expand All @@ -52,14 +27,17 @@ body:
description: 实际发生了什么?你原本期望发生什么?
placeholder: |
例:在 Edge Android 上打开 ScriptCat popup 后点击“导入文件”,文件选择器出现但选择后没有任何反应。

期望:
实际:
validations:
required: true

- type: textarea
id: steps
attributes:
label: 最小复现步骤
description: 请写成别人可以照着操作的步骤。不要只写“1”“见图”“如题”。
label: 复现步骤
description: 请写成别人可以照着操作的步骤。
placeholder: |
1. 安装 ScriptCat v...
2. 打开 ...
Expand All @@ -68,16 +46,6 @@ body:
validations:
required: true

- type: textarea
id: expected-actual
attributes:
label: 期望行为 vs 实际行为
placeholder: |
期望:
实际:
validations:
required: true

- type: input
id: scriptcat-version
attributes:
Expand All @@ -86,114 +54,22 @@ body:
validations:
required: true

- type: dropdown
id: release-channel
attributes:
label: ScriptCat 渠道
options:
- Chrome Stable
- Chrome Beta
- Edge Stable
- Edge Beta
- Firefox Stable / MV2
- Firefox Beta / MV2
- GitHub Release 手动安装
- 自行构建 / dev
- VSCode 插件
- 不确定
validations:
required: true

- type: dropdown
id: manifest-mode
attributes:
label: Manifest / 扩展模式
options:
- MV3
- MV2 / Firefox
- 不确定
validations:
required: true

- type: input
id: os
attributes:
label: 操作系统
placeholder: "例如:Windows 11 24H2 / macOS 15 / Android 16 / HarmonyOS 4.2 / iOS"
validations:
required: true

- type: input
id: browser
attributes:
label: 浏览器及版本
placeholder: "例如:Chrome 143.0.7499.41 / Edge 146.0.3802.0 / Firefox 151.0b7 / Brave 1.92.120 / Cromite 142..."
validations:
required: true

- type: dropdown
id: device-type
attributes:
label: 设备类型
options:
- 桌面端
- Android 手机/平板
- iOS/iPadOS
- 其他
label: 系统 / 浏览器及版本
placeholder: "例如:Windows 11 + Chrome 143 / Android 16 + Edge 146 / macOS + Firefox 151"
validations:
required: true

- type: checkboxes
id: browser-flags
attributes:
label: 浏览器/扩展状态
options:
- label: 开启了隐身模式 / InPrivate / Private Window
- label: 使用移动端浏览器扩展支持
- label: 使用第三方 Chromium 浏览器
- label: 使用第三方 Firefox/Gecko 浏览器
- label: 已授予 ScriptCat 对目标网站的站点访问权限
- label: 开启了开发者模式
- label: 安装了其他可能影响页面/请求/脚本的扩展

- type: textarea
id: related-script
attributes:
label: 相关用户脚本 / 配置
description: 如果问题和某个脚本有关,请提供安装链接、脚本头部 metadata、或 ScriptCat 导出的 zip。敏感信息请先脱敏。
placeholder: |
脚本链接:
目标网站:
关键 metadata:
```js
// ==UserScript==
// @name ...
// @match ...
// @grant ...
// @connect ...
// ==/UserScript==
```
validations:
required: false

- type: textarea
id: logs
attributes:
label: 日志 / 错误信息 / 截图
description: |
请说明日志来自哪里:页面 DevTools、扩展 Service Worker、offscreen.html、popup、options 页面、定时脚本日志等。
placeholder: |
日志来源:
错误信息:
截图/视频:
validations:
required: false

- type: textarea
id: workaround
id: details
attributes:
label: 是否有临时解决办法
label: 相关脚本 / 日志 / 截图
description: 相关脚本的安装链接或 metadata、控制台或 Service Worker 日志、截图。敏感信息请先脱敏。
placeholder: |
例:刷新页面后恢复;换成 Tampermonkey 正常;关闭隐身模式后正常;重新安装脚本后正常。
脚本链接 / 目标网站:
日志(来源:页面 DevTools / Service Worker / offscreen / popup):
截图:
validations:
required: false
81 changes: 15 additions & 66 deletions .github/ISSUE_TEMPLATE/02_userscript_compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ body:
attributes:
value: |
这个模板专门用于 **用户脚本兼容性**。
请尽量提供脚本链接、目标网站、metadata、对比结果和最小复现脚本。
如果只是 ScriptCat 界面或同步功能异常,请使用 Bug 反馈模板。

如果只是 ScriptCat 界面、同步、安装等本体功能异常,请改用 Bug 反馈模板。

- type: checkboxes
id: precheck
attributes:
label: 提交前检查
options:
- label: 我已经搜索过现有 issues
required: true
- label: 我确认该问题与某个用户脚本或 userscript API 兼容性有关
required: true
- label: 我已经尽量提供脚本链接或最小复现脚本
- label: 我已经搜索过现有 issues,并确认问题与某个用户脚本或 userscript API 有关
required: true

- type: input
Expand All @@ -36,29 +32,17 @@ body:
id: target-url
attributes:
label: 触发问题的目标网站
placeholder: "例如: <target website URL>"
validations:
required: true

- type: textarea
id: problem
attributes:
label: 在 ScriptCat 中的异常表现
label: 问题表现与对比
description: 在 ScriptCat 中是什么表现?在其他脚本管理器中又是什么表现?请注明对比用的管理器和版本。
placeholder: |
例:按钮不出现 / 脚本不执行 / GM_xmlhttpRequest 报错 / 菜单项无效 / 页面无限刷新
validations:
required: true

- type: textarea
id: comparison
attributes:
label: 与其他用户脚本管理器的对比
description: 请写清楚 Tampermonkey / Violentmonkey / FireMonkey / Greasemonkey 的结果。
placeholder: |
Tampermonkey 版本:
Violentmonkey 版本:
FireMonkey/Greasemonkey 版本:
在这些管理器中的表现:
在 ScriptCat 中:按钮不出现 / 脚本不执行 / GM_xmlhttpRequest 报错 / 页面无限刷新
在其他管理器中(如 Tampermonkey 5.x):正常
validations:
required: true

Expand All @@ -78,41 +62,6 @@ body:
validations:
required: true

- type: textarea
id: minimal-reproduction
attributes:
label: 最小复现脚本
description: 如果原脚本太大,请尽量删减成最小可复现版本。
render: javascript
placeholder: |
// 尽量提供能单独复现问题的最小脚本
validations:
required: false

- type: dropdown
id: api-area
attributes:
label: 可能相关的 API / 机制
multiple: true
options:
- GM_xmlhttpRequest / GM.xmlHttpRequest
- GM_getValue / GM.setValue / GM storage
- GM_registerMenuCommand
- GM_download
- GM_cookie / Cookie API
- "@match / @include / @exclude"
- "@connect"
- "@require / @resource"
- "@run-at"
- "@inject-into"
- sandbox / unsafeWindow / page context
- iframe / allFrames / noframes
- CSP / Trusted Types
- service worker / offscreen / background
- 不确定
validations:
required: true

- type: input
id: scriptcat-version
attributes:
Expand All @@ -124,19 +73,19 @@ body:
- type: input
id: browser
attributes:
label: 操作系统和浏览器
placeholder: "例如:Windows 11 Chrome 143 / macOS Firefox 151 / Android WebLibre 0.20"
label: 系统 / 浏览器及版本
placeholder: "例如:Windows 11 + Chrome 143 / macOS + Firefox 151 / Android + WebLibre 0.20"
validations:
required: true

- type: textarea
id: logs
id: details
attributes:
label: 控制台日志 / 网络请求 / 截图
description: 请说明日志来源:页面 console、content script、service worker、offscreen、网络面板等。
label: 最小复现脚本 / 日志 / 截图
description: 如果原脚本太大,请尽量删减成最小可复现版本。日志请注明来源:页面 console、content script、Service Worker、offscreen、网络面板等。
placeholder: |
日志来源
错误
截图/视频:
最小复现脚本
日志来源与错误信息
截图 / 视频:
validations:
required: false
Loading
Loading