Registry / leanmcp

leanmcp/gateway-skills/posthog-adblock-bypass

Configure a Next.js app using posthog-js so session recording and dead-click capture survive browser ad blockers. Aliases the three blocker-flagged JS chunks (dead-clicks-autocapture.js, recorder.js, posthog-recorder.js) to bland same-origin paths via Next.js rewrites, and monkey-patches HTMLScriptElement so posthog-js requests the aliases. TRIGGER when posthog-js session replay or dead-click capture is failing in production with ERR_BLOCKED_BY_CLIENT or 404s on /static/dead-clicks-autocapture.j

Agent skill · version 0.0.0-main.1794415240.g7a708ce · from Leanmcp/gateway-skills

Install

npx yarkr-cli add skill:leanmcp/gateway-skills/posthog-adblock-bypass

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:leanmcp/gateway-skills/posthog-adblock-bypass
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:leanmcp/gateway-skills/posthog-adblock-bypass

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:leanmcp/gateway-skills/posthog-adblock-bypass

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.