BotRefund exposes a lightweight canary function on the page's window object and counts post-load calls to document.getElementsByClassName to catch DOM scraping scripts operating in the main JavaScript context.
What we test
After page initialization, the browser probe attaches a passive canary hook to window and wraps document.getElementsByClassName to count how many times scripts query page elements by CSS class name.
If either the post-load class-selector count rises above zero or an external script invokes the canary function, the session records main-world execution activity for review.
Why it matters
Headless browser evaluators, injected content scripts, and automated DOM scrapers scanning page structure by class name or probing global window functions trigger these counters during automated extraction.
Because legitimate first-party site scripts, analytics bundles, and interactive UI widgets also invoke document.getElementsByClassName routinely, this signal is treated strictly as supporting context and set aside once genuine human interaction is observed.
EXPLANATION
How to interpret the response
01 EXPECTED RESPONSE
No suspicious post-load selector sweeps or canary invocations
When neither the canary hook nor unexpected document.getElementsByClassName calls fire after instrumentation—or when natural visitor interaction confirms genuine browsing—no concern is raised.
Example result
Class selector queries after load: 0 • Canary hook invoked: no — Result: no suspicious activity
02 POSSIBLE AUTOMATION SIGNAL
Unexpected class-selector queries or canary hook call
Automated scrapers scanning DOM class names or calling exposed window functions generate elevated main-world script activity, prompting closer review when unaccompanied by human interaction.
Example result
Class selector queries after load: 3 • Canary hook invoked: no — Result: elevated main-page script activity
Forensic significance: Evaluated strictly as supporting context alongside behavioral signals; benign first-party scripts using document.getElementsByClassName are cleared once genuine human interaction appears.