MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readability

Function readability

graph-ui/tools/smoke-w7b.mjs:663–677  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

661 };
662
663 const readability = async (name) => {
664 const top = await measureReadability(page);
665 const scrolled = await scrollRegionsToEnd(page);
666 await page.waitForTimeout(200);
667 const bottom = await measureReadability(page);
668 await resetScroll(page);
669 extras.readability.push({
670 name,
671 scrolledRegions: scrolled.length,
672 top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped, layers: top.layers },
673 bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped },
674 });
675 report.overlapViolations += top.overlaps.length + bottom.overlaps.length;
676 report.clippingViolations += top.clipped.length + bottom.clipped.length;
677 };
678
679 // ------------------------------------------- 6a. Die Gestalt der Zeile
680 await load();

Callers 1

mainFunction · 0.70

Calls 4

measureReadabilityFunction · 0.90
scrollRegionsToEndFunction · 0.90
resetScrollFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected