Skip to content

Commit 4972b56

Browse files
committed
docs: 📝 更新说明文档
1 parent 9125ec4 commit 4972b56

6 files changed

Lines changed: 32 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
| 名称 | 功能 | 使用 |
2222
| ------------------------------------------------------ | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
2323
| [zip-downloader](./apps/libs/zip-downloader/README.md) | 资源下载器(下载资源、Zip 压缩、下载到本地) | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/559087) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/4893) |
24-
| [xpath-selector](./apps/libs/xpath-selector/README.md) | 一个 XPath 选择器库,快速节点获取数据 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/559142) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/4900) |
24+
| [xpath-selector](./apps/libs/xpath-selector/README.md) | 一个 XPath 选择器库,快速获取节点数据 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/559142) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/4900) |

apps/libs/xpath-selector/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# xpath-selector
22

3+
## 1.0.2
4+
5+
### Patch Changes
6+
7+
- 更新说明文档
8+
39
## 1.0.1
410

511
### Patch Changes

apps/libs/xpath-selector/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XPath Selector
22

3-
**一个 XPath 选择器库,快速节点获取数据**
3+
**一个 XPath 选择器库,快速获取节点数据**
44

55
<a href="https://github.com/xiaohuohumax/userscripts/tree/main/apps/libs/xpath-selector">
66
<img src="https://img.shields.io/badge/GITHUB-项目地址-brightgreen?style=for-the-badge&logo=github" alt="项目地址" />
@@ -34,6 +34,24 @@
3434

3535
### 📦 使用示例
3636

37+
```html
38+
<!DOCTYPE html>
39+
<html lang="en" charset="UTF-8">
40+
<head>
41+
<title>hello world</title>
42+
</head>
43+
<body>
44+
<p>hello</p>
45+
<p>world</p>
46+
<a href="#">hello</a>
47+
<a href="#">world</a>
48+
<section>
49+
<!-- section内容 -->
50+
</section>
51+
</body>
52+
</html>
53+
```
54+
3755
**获取 title 节点的文本内容**
3856

3957
```typescript

apps/libs/xpath-selector/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "xpath-selector",
33
"type": "module",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"private": true,
6-
"description": "XPath Selector -- 一个 XPath 选择器库,快速节点获取数据",
6+
"description": "XPath Selector -- 一个 XPath 选择器库,快速获取节点数据",
77
"author": {
88
"name": "xiaohuohumax",
99
"url": "https://github.com/xiaohuohumax"

apps/libs/xpath-selector/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineConfig({
66
plugins: [
77
banner({
88
content: `// ==UserScript==
9-
// @name DXPath Selector 一个 XPath 选择器库,快速节点获取数据
9+
// @name DXPath Selector 一个 XPath 选择器库,快速获取节点数据
1010
// @namespace xiaohuohumax/userscripts/xpath-selector
1111
// @version ${version}
1212
// @author ${author.name}

dist/xpath-selector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// ==UserScript==
2-
// @name DXPath Selector 一个 XPath 选择器库,快速节点获取数据
2+
// @name DXPath Selector 一个 XPath 选择器库,快速获取节点数据
33
// @namespace xiaohuohumax/userscripts/xpath-selector
4-
// @version 1.0.1
4+
// @version 1.0.2
55
// @author xiaohuohumax
6-
// @description XPath Selector -- 一个 XPath 选择器库,快速节点获取数据
6+
// @description XPath Selector -- 一个 XPath 选择器库,快速获取节点数据
77
// @license MIT
88
// ==/UserScript==
99

0 commit comments

Comments
 (0)