File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ) |
Original file line number Diff line number Diff line change 11# xpath-selector
22
3+ ## 1.0.2
4+
5+ ### Patch Changes
6+
7+ - 更新说明文档
8+
39## 1.0.1
410
511### Patch Changes
Original file line number Diff line number Diff line change 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 =" 项目地址 " />
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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments