Skip to content

Commit a873957

Browse files
committed
Merge branch 'main' into feat/script-module
2 parents 17410ec + f0d297c commit a873957

946 files changed

Lines changed: 110620 additions & 23362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
name: "🕷️ Bug 反馈"
2+
description: ScriptCat 本体、扩展界面、同步、安装、定时/后台脚本等异常
3+
title: "[BUG] "
4+
type: "Bug"
5+
labels: ["bug"]
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
感谢反馈。请尽量填写完整,尤其是 **ScriptCat 版本、浏览器版本、复现步骤、日志、相关脚本链接/导出文件**。
12+
如果是某个用户脚本在 ScriptCat 不兼容,但在 Tampermonkey/Violentmonkey 正常,请改用 “Userscript Compatibility” 模板。
13+
14+
- type: checkboxes
15+
id: precheck
16+
attributes:
17+
label: 提交前检查
18+
options:
19+
- label: 我已经搜索过现有 issues,确认不是重复问题
20+
required: true
21+
- label: 我已经尽量使用最新 stable 或 beta 版本测试
22+
required: true
23+
- label: 这不是安全漏洞;安全漏洞会通过 Security Advisory 私密提交
24+
required: true
25+
26+
- type: dropdown
27+
id: bug-area
28+
attributes:
29+
label: 问题类型
30+
multiple: true
31+
options:
32+
- 扩展安装 / 更新 / 卸载
33+
- 脚本安装 / 更新 / 导入 / 导出
34+
- 脚本执行 / 注入 / 匹配规则
35+
- GM API / CAT API
36+
- 后台脚本 / 定时脚本 / offscreen
37+
- Cloud Sync / 备份 / 恢复 / WebDAV / Google Drive / OneDrive
38+
- Popup / Options 管理页 / UI
39+
- 内置编辑器 / Monaco / ESLint
40+
- 日志 / 调试 / 错误提示
41+
- 移动端 / 小屏适配
42+
- 隐身模式 / 多窗口 / 多标签页
43+
- 性能 / 内存 / 存储
44+
- 其他
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: summary
50+
attributes:
51+
label: 问题描述
52+
description: 实际发生了什么?你原本期望发生什么?
53+
placeholder: |
54+
例:在 Edge Android 上打开 ScriptCat popup 后点击“导入文件”,文件选择器出现但选择后没有任何反应。
55+
validations:
56+
required: true
57+
58+
- type: textarea
59+
id: steps
60+
attributes:
61+
label: 最小复现步骤
62+
description: 请写成别人可以照着操作的步骤。不要只写“1”“见图”“如题”。
63+
placeholder: |
64+
1. 安装 ScriptCat v...
65+
2. 打开 ...
66+
3. 点击 ...
67+
4. 观察到 ...
68+
validations:
69+
required: true
70+
71+
- type: textarea
72+
id: expected-actual
73+
attributes:
74+
label: 期望行为 vs 实际行为
75+
placeholder: |
76+
期望:
77+
实际:
78+
validations:
79+
required: true
80+
81+
- type: input
82+
id: scriptcat-version
83+
attributes:
84+
label: ScriptCat 版本
85+
placeholder: "例如:v1.4.0 / v1.4.0-beta / Firefox MV2 v0.16.15"
86+
validations:
87+
required: true
88+
89+
- type: dropdown
90+
id: release-channel
91+
attributes:
92+
label: ScriptCat 渠道
93+
options:
94+
- Chrome Stable
95+
- Chrome Beta
96+
- Edge Stable
97+
- Edge Beta
98+
- Firefox Stable / MV2
99+
- Firefox Beta / MV2
100+
- GitHub Release 手动安装
101+
- 自行构建 / dev
102+
- VSCode 插件
103+
- 不确定
104+
validations:
105+
required: true
106+
107+
- type: dropdown
108+
id: manifest-mode
109+
attributes:
110+
label: Manifest / 扩展模式
111+
options:
112+
- MV3
113+
- MV2 / Firefox
114+
- 不确定
115+
validations:
116+
required: true
117+
118+
- type: input
119+
id: os
120+
attributes:
121+
label: 操作系统
122+
placeholder: "例如:Windows 11 24H2 / macOS 15 / Android 16 / HarmonyOS 4.2 / iOS"
123+
validations:
124+
required: true
125+
126+
- type: input
127+
id: browser
128+
attributes:
129+
label: 浏览器及版本
130+
placeholder: "例如:Chrome 143.0.7499.41 / Edge 146.0.3802.0 / Firefox 151.0b7 / Brave 1.92.120 / Cromite 142..."
131+
validations:
132+
required: true
133+
134+
- type: dropdown
135+
id: device-type
136+
attributes:
137+
label: 设备类型
138+
options:
139+
- 桌面端
140+
- Android 手机/平板
141+
- iOS/iPadOS
142+
- 其他
143+
validations:
144+
required: true
145+
146+
- type: checkboxes
147+
id: browser-flags
148+
attributes:
149+
label: 浏览器/扩展状态
150+
options:
151+
- label: 开启了隐身模式 / InPrivate / Private Window
152+
- label: 使用移动端浏览器扩展支持
153+
- label: 使用第三方 Chromium 浏览器
154+
- label: 使用第三方 Firefox/Gecko 浏览器
155+
- label: 已授予 ScriptCat 对目标网站的站点访问权限
156+
- label: 开启了开发者模式
157+
- label: 安装了其他可能影响页面/请求/脚本的扩展
158+
159+
- type: textarea
160+
id: related-script
161+
attributes:
162+
label: 相关用户脚本 / 配置
163+
description: 如果问题和某个脚本有关,请提供安装链接、脚本头部 metadata、或 ScriptCat 导出的 zip。敏感信息请先脱敏。
164+
placeholder: |
165+
脚本链接:
166+
目标网站:
167+
关键 metadata:
168+
```js
169+
// ==UserScript==
170+
// @name ...
171+
// @match ...
172+
// @grant ...
173+
// @connect ...
174+
// ==/UserScript==
175+
```
176+
validations:
177+
required: false
178+
179+
- type: textarea
180+
id: logs
181+
attributes:
182+
label: 日志 / 错误信息 / 截图
183+
description: |
184+
请说明日志来自哪里:页面 DevTools、扩展 Service Worker、offscreen.html、popup、options 页面、定时脚本日志等。
185+
placeholder: |
186+
日志来源:
187+
错误信息:
188+
截图/视频:
189+
validations:
190+
required: false
191+
192+
- type: textarea
193+
id: workaround
194+
attributes:
195+
label: 是否有临时解决办法
196+
placeholder: |
197+
例:刷新页面后恢复;换成 Tampermonkey 正常;关闭隐身模式后正常;重新安装脚本后正常。
198+
validations:
199+
required: false
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
name: "🧩 Userscript 兼容性问题"
2+
description: 某个用户脚本在 ScriptCat 中异常,但在 Tampermonkey / Violentmonkey / 其他管理器中正常
3+
title: "[Compatibility] "
4+
type: "Bug"
5+
labels: ["compatibility", "userscript"]
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
这个模板专门用于 **用户脚本兼容性**。
12+
请尽量提供脚本链接、目标网站、metadata、对比结果和最小复现脚本。
13+
如果只是 ScriptCat 界面或同步功能异常,请使用 Bug 反馈模板。
14+
15+
- type: checkboxes
16+
id: precheck
17+
attributes:
18+
label: 提交前检查
19+
options:
20+
- label: 我已经搜索过现有 issues
21+
required: true
22+
- label: 我确认该问题与某个用户脚本或 userscript API 兼容性有关
23+
required: true
24+
- label: 我已经尽量提供脚本链接或最小复现脚本
25+
required: true
26+
27+
- type: input
28+
id: script-url
29+
attributes:
30+
label: 用户脚本链接
31+
placeholder: "GreasyFork / OpenUserJS / GitHub raw / scriptcat.org / 其他"
32+
validations:
33+
required: true
34+
35+
- type: input
36+
id: target-url
37+
attributes:
38+
label: 触发问题的目标网站
39+
placeholder: "例如: <target website URL>"
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
id: problem
45+
attributes:
46+
label: 在 ScriptCat 中的异常表现
47+
placeholder: |
48+
例:按钮不出现 / 脚本不执行 / GM_xmlhttpRequest 报错 / 菜单项无效 / 页面无限刷新
49+
validations:
50+
required: true
51+
52+
- type: textarea
53+
id: comparison
54+
attributes:
55+
label: 与其他用户脚本管理器的对比
56+
description: 请写清楚 Tampermonkey / Violentmonkey / FireMonkey / Greasemonkey 的结果。
57+
placeholder: |
58+
Tampermonkey 版本:
59+
Violentmonkey 版本:
60+
FireMonkey/Greasemonkey 版本:
61+
在这些管理器中的表现:
62+
validations:
63+
required: true
64+
65+
- type: textarea
66+
id: metadata
67+
attributes:
68+
label: 用户脚本 metadata
69+
description: 请至少提供 `@match`、`@grant`、`@connect`、`@require`、`@resource`、`@run-at`、`@inject-into` 等相关字段。
70+
render: javascript
71+
placeholder: |
72+
// ==UserScript==
73+
// @name ...
74+
// @match ...
75+
// @grant ...
76+
// @connect ...
77+
// ==/UserScript==
78+
validations:
79+
required: true
80+
81+
- type: textarea
82+
id: minimal-reproduction
83+
attributes:
84+
label: 最小复现脚本
85+
description: 如果原脚本太大,请尽量删减成最小可复现版本。
86+
render: javascript
87+
placeholder: |
88+
// 尽量提供能单独复现问题的最小脚本
89+
validations:
90+
required: false
91+
92+
- type: dropdown
93+
id: api-area
94+
attributes:
95+
label: 可能相关的 API / 机制
96+
multiple: true
97+
options:
98+
- GM_xmlhttpRequest / GM.xmlHttpRequest
99+
- GM_getValue / GM.setValue / GM storage
100+
- GM_registerMenuCommand
101+
- GM_download
102+
- GM_cookie / Cookie API
103+
- "@match / @include / @exclude"
104+
- "@connect"
105+
- "@require / @resource"
106+
- "@run-at"
107+
- "@inject-into"
108+
- sandbox / unsafeWindow / page context
109+
- iframe / allFrames / noframes
110+
- CSP / Trusted Types
111+
- service worker / offscreen / background
112+
- 不确定
113+
validations:
114+
required: true
115+
116+
- type: input
117+
id: scriptcat-version
118+
attributes:
119+
label: ScriptCat 版本
120+
placeholder: "例如:v1.4.0 / v1.4.0-beta / Firefox MV2 v0.16.15"
121+
validations:
122+
required: true
123+
124+
- type: input
125+
id: browser
126+
attributes:
127+
label: 操作系统和浏览器
128+
placeholder: "例如:Windows 11 Chrome 143 / macOS Firefox 151 / Android WebLibre 0.20"
129+
validations:
130+
required: true
131+
132+
- type: textarea
133+
id: logs
134+
attributes:
135+
label: 控制台日志 / 网络请求 / 截图
136+
description: 请说明日志来源:页面 console、content script、service worker、offscreen、网络面板等。
137+
placeholder: |
138+
日志来源:
139+
错误:
140+
截图/视频:
141+
validations:
142+
required: false

0 commit comments

Comments
 (0)