/** * The script that runs inside the search results page. * * It is built as a string rather than shipped as a function because it goes to * Chrome via `Runtime.evaluate` — nothing in here is typechecked, so it is kept * defensive and free of anything that could throw on an unexpected DOM. The * per-engine configuration is injected as JSON by {@link buildProbeScript}. * * ## Two modes, because the engines genuinely differ * * **"items"** — DuckDuckGo, Bing and Brave each have a clean per-result * container, so results are read directly out of it. * * **"headings"** — Google has no stable result container; its class names * (`MjjYud`, `kb0PBd`, `yuRUbf`) are generated and change without notice. So * results are found from each `