Cursor rule
.cursor/rules/fingerprint-popover-sync.mdc浏览器指纹多维度一致性同步规范
Cursor rules
Quality
25/100
Scores the file, not the repository.Length
82 words
4 headings · 0 code blocksRepository
34
— · pushed 25 days agoLast changed
3 days ago
First indexed 3 days ago.12345678910# 指纹维度适配与同步规范1112## 问题背景13指纹伪造是一个涉及前后端、扩展注入以及UI展示的全链路功能。一旦新增、删除或重命名某一个指纹维度时,很容易在各个环节出现不同步的问题(如:后端输出了数据但前端UI未能配置,或注入脚本没有生效,或状态栏指纹弹窗未能展示该维度)。1415## 核心原则:四端一致性16当你需要修改指纹维度(如添加新的 CPU 参数、网络参数、字体信息等)时,**必须同时更新以下四个文件**,以保持全链路一致:17181. **后端生成源**: `backend/app/fingerprint.py`19 - 修改 `_DEFAULT_POOL` 数据字典。20 - 必须确保在 `generate_profile()` 的返回值中包含该字段,供下游使用。21222. **浏览器注入脚本**: `services/selenium-chrome/stealth-ext/stealth.js`23 - 拦截并覆盖相关浏览器 API。24 - 必须从注入的全局变量 `__FP__` 中读取由 `generate_profile()` 输出的具体维度值,进行真实的指纹伪造。25263. **前端指纹池配置表单**: `frontend/src/components/FingerprintPoolSettings.vue`27 - 增加表单双向绑定的输入组件(使用恰当的 input 类型或组件)。28 - 更新 Vue 的 state ref 默认值以及 `openAdd()`、`openEdit()` 和 `buildData()` 里的数据结构解析和组装逻辑。29304. **状态栏指纹弹窗展示**: `frontend/src/components/NoVNCViewer.vue`31 - 在弹窗 `fpProfile` 详情区增加该维度的只读展示。32 - 需确保与 `generate_profile()` 输出对齐,展示相应的指标概要信息,并在对应的 `en.ts` / `zh.ts` 文件中补充 i18n 国际化键。3334## 注意事项35- 在展示和注入时要注意数据格式的兼容性和判空,对于不存在的新增字段使用可选链 `?.` 或 `v-if` 进行容错降级。36- WebGL 和 Audio 等高阶维度的拦截必须使用与之匹配的数据类型(如 TypedArray)。37
Also in NoDeskAI/browser-pilot
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| NoDeskAI/browser-pilot.cursor/rules/build-from-user-perspective.mdc · 34 | Cursor rules | buildsecurity | 51/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/debug-container.mdc · 34 | Cursor rules | api | 65/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/deploy.mdc · 34 | Cursor rules | no sections | 38/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/env-vars.mdc · 34 | Cursor rules | setup | 63/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/keyboard-shortcuts-ux.mdc · 34 | Cursor rules | ui | 31/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/plan-ui-summary.mdc · 34 | Cursor rules | ui | 54/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/tailwind-css-color-mix.mdc · 34 | Cursor rules | ui | 50/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/ux-ui-daynight.mdc · 34 | Cursor rules | lint-formatui | 54/100 | 3 days ago | |
| NoDeskAI/browser-pilot.cursor/rules/verify-before-claim.mdc · 34 | Cursor rules | no sections | 50/100 | 3 days ago |
Diff against .cursor/rules/build-from-user-perspective.mdc Diff against .cursor/rules/debug-container.mdc Diff against .cursor/rules/deploy.mdc Diff against .cursor/rules/env-vars.mdc Diff against .cursor/rules/keyboard-shortcuts-ux.mdc Diff against .cursor/rules/plan-ui-summary.mdc Diff against .cursor/rules/tailwind-css-color-mix.mdc Diff against .cursor/rules/ux-ui-daynight.mdc Diff against .cursor/rules/verify-before-claim.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
