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

Function readability

graph-ui/tools/smoke-w7a.mjs:399–413  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

397 * kollidiert, eine Seite ist, die kollidiert.
398 */
399 const readability = async (name) => {
400 const top = await measureReadability(page);
401 const scrolled = await scrollRegionsToEnd(page);
402 await page.waitForTimeout(200);
403 const bottom = await measureReadability(page);
404 await resetScroll(page);
405 extras.readability.push({
406 name,
407 scrolledRegions: scrolled.length,
408 top: { candidates: top.candidates, overlaps: top.overlaps, clipped: top.clipped, layers: top.layers },
409 bottom: { candidates: bottom.candidates, overlaps: bottom.overlaps, clipped: bottom.clipped },
410 });
411 report.overlapViolations += top.overlaps.length + bottom.overlaps.length;
412 report.clippingViolations += top.clipped.length + bottom.clipped.length;
413 };
414
415 // ------------------------------------------- 6a. Die Menuezeile
416 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