feat: replace data-browser-use-ignore with data-page-agent-ignore

This commit is contained in:
Simon
2026-03-05 16:24:50 +08:00
parent ff31b0c03e
commit 76509d93f0
3 changed files with 3 additions and 1 deletions

View File

@@ -1446,7 +1446,7 @@ export default (
/** /**
* @edit add `data-browser-use-ignore` attribute * @edit add `data-browser-use-ignore` attribute
*/ */
if (node.dataset?.browserUseIgnore === 'true') { if (node.dataset?.browserUseIgnore === 'true' || node.dataset?.pageAgentIgnore === 'true') {
return null // Skip this node and its children return null // Skip this node and its children
} }

View File

@@ -28,6 +28,7 @@ export class SimulatorMask {
this.wrapper.id = 'page-agent-runtime_simulator-mask' this.wrapper.id = 'page-agent-runtime_simulator-mask'
this.wrapper.className = styles.wrapper this.wrapper.className = styles.wrapper
this.wrapper.setAttribute('data-browser-use-ignore', 'true') this.wrapper.setAttribute('data-browser-use-ignore', 'true')
this.wrapper.setAttribute('data-page-agent-ignore', 'true')
this.wrapper.appendChild(this.motion.element) this.wrapper.appendChild(this.motion.element)
this.motion.autoResize(this.wrapper) this.motion.autoResize(this.wrapper)

View File

@@ -373,6 +373,7 @@ export class Panel {
wrapper.id = 'page-agent-runtime_agent-panel' wrapper.id = 'page-agent-runtime_agent-panel'
wrapper.className = styles.wrapper wrapper.className = styles.wrapper
wrapper.setAttribute('data-browser-use-ignore', 'true') wrapper.setAttribute('data-browser-use-ignore', 'true')
wrapper.setAttribute('data-page-agent-ignore', 'true')
wrapper.innerHTML = ` wrapper.innerHTML = `
<div class="${styles.background}"></div> <div class="${styles.background}"></div>