diff --git a/.vscode/launch.json b/.vscode/launch.json index 7152424..7ef4f1c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "chrome", "request": "launch", "url": "file://${workspaceFolder}/test/deepseek_html_20250425_ef9a56.html", - "webRoot": "${workspaceFolder}", + "webRoot": "${workspaceFolder}/src//chrome", "runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "userDataDir": "${workspaceFolder}/.chrome-debug", "runtimeArgs": [ diff --git a/src/chrome/content/content.js b/src/chrome/content/content.js index 71312da..24e315b 100644 --- a/src/chrome/content/content.js +++ b/src/chrome/content/content.js @@ -1300,6 +1300,12 @@ function addAllXpathAttributesBbased(attribute, tagName, element) { xpathArray.push([1, 'Id is unique:', id]) } ; break; + case 'robotid': + let robotid = item.value + if (robotid != null) { + xpathArray.push([1, 'RobotId is unique:', robotid]) + } + ; break; case 'class': let className = getClassBasedXpath(element, tagName) if (className != null) {