Skip to content

智能定位网页元素位置和选择器名称的脚本A script for intelligently locating the positions of web page elements and the names of selectors

License

Notifications You must be signed in to change notification settings

leekHotline/element-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

智能元素定位助手

一个用于快速定位和分析网页元素的油猴脚本。

Snipaste_2025-12-19_17-49-00

使用方法

  1. Alt + X 开启/关闭元素选择模式
  2. 鼠标悬停在元素上会显示红色边框
  3. 点击元素查看详细信息和推荐选择器
  4. 点击"复制"按钮快速复制选择器
  5. 填写选择器表单,一键导出

开发

项目结构

``` src/

├── config.js # 配置变量

├── ui.js # 面板UI

├── core.js # 核心逻辑

```

构建

node build.js

生成的脚本位于 dist/element-locator.user.js

License

MIT

About

智能定位网页元素位置和选择器名称的脚本A script for intelligently locating the positions of web page elements and the names of selectors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published