chore: self-commit core logic updates and agent state

This commit is contained in:
Jiaqing Liang
2026-01-30 14:51:52 +08:00
parent 35ce8f7c9e
commit 01c477c050
5 changed files with 68 additions and 68 deletions

View File

@@ -1,6 +1,6 @@
from bs4 import BeautifulSoup
js_optHTML = '''function optHTML() {
js_optHTML = r'''function optHTML() {
function createEnhancedDOMCopy() {
const nodeInfo = new WeakMap();
const ignoreTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'META', 'LINK', 'COLGROUP', 'COL', 'TEMPLATE', 'PARAM', 'SOURCE'];
@@ -237,7 +237,7 @@ optHTML()'''
js_findMainList = '''function findMainList(startElement = null) {
js_findMainList = r'''function findMainList(startElement = null) {
const containerElement = startElement || document.body;
const rect = containerElement.getBoundingClientRect();
const centerX = startElement ? (rect.left + rect.width/2) : (window.innerWidth/2);