Sync/dashboard, sanitize content, update config

Add local Claude permissions file; make background.js call syncToDashboard() after each run when config.syncToDashboard is enabled; improve content extraction in content.js by cloning link nodes, removing svg/style elements and stripping review-related text/counts before trimming; update config.py defaults to enable target and gamestop (remove bestbuy), set HEADLESS=True and STEALTH_HEADLESS=True to favor headless environments.
This commit is contained in:
2026-03-28 10:24:25 -04:00
parent 8d382e723f
commit 297cb9b146
4 changed files with 33 additions and 4 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ SORT_BY_NEWEST = True
# Which sites to monitor
# Note: PokemonCenter has strong bot protection (Imperva) - may need manual workarounds
# Note: Walmart has aggressive bot protection (PerimeterX) - may need stealth mode
SITES_ENABLED = ["target", "bestbuy"] # Options: "pokemoncenter", "target", "gamestop", "bestbuy" (disabled - needs rework), "walmart"
SITES_ENABLED = ["target", "gamestop"] # Options: "pokemoncenter", "target", "gamestop", "bestbuy" (disabled - needs rework), "walmart"
# PokemonCenter URLs to monitor
POKEMON_CENTER_URLS = [
@@ -74,7 +74,7 @@ KEYWORDS = [
]
# Browser settings
HEADLESS = False # Set to False to see the browser (useful for debugging)
HEADLESS = True # Set to False to see the browser (useful for debugging)
SLOW_MO = 0 # Milliseconds to slow down browser actions (for debugging)
# Chrome profile for PokemonCenter (optional - helps bypass bot detection)
@@ -98,7 +98,7 @@ USE_REAL_CHROME = True
USE_STEALTH_BROWSER = True
# Stealth browser settings
STEALTH_HEADLESS = False # Keep False - headless is more detectable
STEALTH_HEADLESS = True # Set True for headless/no-display environments
STEALTH_SESSION_NAME = "pokemoncenter" # Name for cookie/session persistence
# Human-like behavior settings