fix(amazon): 使用 ul 类名 XPath 抓取五点描述

chore: 将扩展 displayName 更新为 v0.7.1.10-beta
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PetrichorFun 2026-05-08 17:00:06 +08:00
parent 52526c6641
commit bde6022230
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "azon-seeker",
"displayName": "Azon Seeker v0.7.1.9-beta",
"displayName": "Azon Seeker v0.7.1.10-beta",
"version": "0.7.2",
"private": true,
"description": "Starter modify by honestfox101 and PetrichorFun",

View File

@ -666,9 +666,9 @@ export class AmazonDetailPageInjector extends BaseInjector {
}
return nodes.length > 0 ? nodes : undefined;
};
const abouts = $x(
`//*[normalize-space(text())='About this item']/following-sibling::ul[1]/li`,
)?.map((el) => el.innerText);
const abouts = $x<HTMLElement>(
`(//ul[contains(concat(' ', normalize-space(@class), ' '), ' a-unordered-list ') and contains(concat(' ', normalize-space(@class), ' '), ' a-vertical ') and contains(concat(' ', normalize-space(@class), ' '), ' a-spacing-mini ')])[1]/li`,
)?.map((el) => el.innerText.trim());
const brand = $x(`//*[./span[normalize-space(text())='Brand']]/following-sibling::*[1]`)?.[0]
.innerText;
const flavor = $x(