RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/NoDeskAI/browser-pilot

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 blocks

Repository

34

— · pushed 25 days ago

Last changed

3 days ago

First indexed 3 days ago.
NoDeskAI/browser-pilot/.cursor/rules/fingerprint-popover-sync.mdcRawGitHub
1---
2description: 浏览器指纹多维度一致性同步规范
3globs:
4 - "backend/app/fingerprint.py"
5 - "services/selenium-chrome/stealth-ext/stealth.js"
6 - "frontend/src/components/FingerprintPoolSettings.vue"
7 - "frontend/src/components/NoVNCViewer.vue"
8alwaysApply: false
9---
10# 指纹维度适配与同步规范
11 
12## 问题背景
13指纹伪造是一个涉及前后端、扩展注入以及UI展示的全链路功能。一旦新增、删除或重命名某一个指纹维度时,很容易在各个环节出现不同步的问题(如:后端输出了数据但前端UI未能配置,或注入脚本没有生效,或状态栏指纹弹窗未能展示该维度)。
14 
15## 核心原则:四端一致性
16当你需要修改指纹维度(如添加新的 CPU 参数、网络参数、字体信息等)时,**必须同时更新以下四个文件**,以保持全链路一致:
17 
181. **后端生成源**: `backend/app/fingerprint.py`
19 - 修改 `_DEFAULT_POOL` 数据字典。
20 - 必须确保在 `generate_profile()` 的返回值中包含该字段,供下游使用。
21 
222. **浏览器注入脚本**: `services/selenium-chrome/stealth-ext/stealth.js`
23 - 拦截并覆盖相关浏览器 API。
24 - 必须从注入的全局变量 `__FP__` 中读取由 `generate_profile()` 输出的具体维度值,进行真实的指纹伪造。
25 
263. **前端指纹池配置表单**: `frontend/src/components/FingerprintPoolSettings.vue`
27 - 增加表单双向绑定的输入组件(使用恰当的 input 类型或组件)。
28 - 更新 Vue 的 state ref 默认值以及 `openAdd()`、`openEdit()` 和 `buildData()` 里的数据结构解析和组装逻辑。
29 
304. **状态栏指纹弹窗展示**: `frontend/src/components/NoVNCViewer.vue`
31 - 在弹窗 `fpProfile` 详情区增加该维度的只读展示。
32 - 需确保与 `generate_profile()` 输出对齐,展示相应的指标概要信息,并在对应的 `en.ts` / `zh.ts` 文件中补充 i18n 国际化键。
33 
34## 注意事项
35- 在展示和注入时要注意数据格式的兼容性和判空,对于不存在的新增字段使用可选链 `?.` 或 `v-if` 进行容错降级。
36- WebGL 和 Audio 等高阶维度的拦截必须使用与之匹配的数据类型(如 TypedArray)。
37 

Sections

  • 指纹维度适配与同步规范
  • 问题背景
  • 核心原则:四端一致性
  • 注意事项

Stack — with the evidence

docker

(1.00)

python

(0.80)

node

(0.70)

vue

(0.70)

fastapi

(0.70)

postgres

(0.70)

tailwind

(0.70)

vite

(0.70)

aws

(0.70)

typescript

(0.60)

javascript

(0.50)

Glob targeting

  • backend/app/fingerprint.py
  • services/selenium-chrome/stealth-ext/stealth.js
  • frontend/src/components/FingerprintPoolSettings.vue
  • frontend/src/components/NoVNCViewer.vue

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
NoDeskAI
Language
—
License
—
Archived
no

All configs in this repo

Also in NoDeskAI/browser-pilot

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
NoDeskAI/browser-pilot.cursor/rules/build-from-user-perspective.mdc · 34Cursor rulesdockernode+9buildsecurity51/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/debug-container.mdc · 34Cursor rulesdockerpython+9api65/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/deploy.mdc · 34Cursor rulesdockerpython+9no sections38/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/env-vars.mdc · 34Cursor rulesdockerpython+9setup63/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/keyboard-shortcuts-ux.mdc · 34Cursor rulesdockerpython+9ui31/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/plan-ui-summary.mdc · 34Cursor rulesdockerpython+9ui54/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/tailwind-css-color-mix.mdc · 34Cursor rulesdockerpython+9ui50/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/ux-ui-daynight.mdc · 34Cursor rulesdockerpython+9lint-formatui54/1003 days ago
NoDeskAI/browser-pilot.cursor/rules/verify-before-claim.mdc · 34Cursor rulesdockerpython+9no sections50/1003 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.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack