# 自定义浏览器插件 **Repository Path**: ran310/custom-browser-plugin ## Basic Information - **Project Name**: 自定义浏览器插件 - **Description**: 自定义浏览器插件 - **Primary Language**: JavaScript - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-21 - **Last Updated**: 2023-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自定义浏览器插件 #### 介绍 自动填写表单 ```typescript export interface DataItem{ type: string, value: string | string[], selector?: string } export type CustomValue = DataItem | DataItem[] export interface CustomData { [keyof: string]: CustomValue } ``` 接受json格式如上: - key: 为表单元素的id - value: 表单元素的值 - selector: 表单元素父级的选择器 DataItem[] 情况为如下情况:name重复,其他格式selector可选,该情况需要selector来区分 ```html
是否:
是否:
```