PageSourceSearch

https://dougcardell.com/includes/webmcp-tools.php?client=1

js dougcardell.com collected 2026-10-04 07:28:37 UTC 662 bytes, 22 lines download raw bytes

1// Latch Client Loader
2console.log("Latch client loader active");
3
4// Register custom tools
5window.latchTools = {
6    getArticleText() {
7        return document.querySelector(".article-body")?.innerText || "";
8    },
9    getMetadata() {
10        return document.modelContext || {};
11    },
12    highlightSection(id) {
13        document.getElementById(id)?.scrollIntoView({ behavior: "smooth" });
14    }
15};
16
17// Register the service worker
18if ('serviceWorker' in navigator) {
19    navigator.serviceWorker.register('/latch-sw.js')
20        .then(reg => console.log("Service worker registered:", reg))
21        .catch(err => console.error("SW registration failed:", err));
22}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.