Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
og-stealth-proxy is an OpenGraph metadata proxy service with client-side scripts for embedding social media content on third-party websites. The proxy uses Puppeteer with stealth plugin to bypass bot detection when fetching OG metadata.
Node.js + Express server running on port 3000 with three main endpoints:
Key components:
puppeteer-extra-plugin-stealth for bot detection bypassjQuery-based scripts injected into forum pages to auto-embed social media content:
fb.js — Facebook posts, videos, reels, photos, eventstg.js — Telegram posts via iframeog-generic.js — Generic OG preview cards for other URLsdecember2025/generic.js — Newer generic implementation for censor.net linksChrome extension for development/debugging that logs page messages.
# Install dependencies npm install # Start server npm start # or: node index.js # Server runs on port 3000 (configurable via PORT env var)
The server is deployed as a systemd service on
dimgord.cc:
# Service management sudo systemctl start ogproxy sudo systemctl stop ogproxy sudo systemctl restart ogproxy sudo systemctl status ogproxy # View logs journalctl -u ogproxy -f
Service file:
ogproxy.service (copy to /etc/systemd/system/)
Nginx config: dimgord.cc.conf (routes /og-proxy, /resolve, /can-embed-fb)
normalizeUrl() unwraps tracking parameters and redirect wrappers:
u= param from l.facebook.com/l.php?u=...Pattern matchers for different FB content types:
isVideo() — /watch?v=, /videos/, /isReel() — /reel/isFbPost() — /posts/, /permalink.php, /story.php, /photo/isShare() — /share/[type]/[id] (requires /resolve expansion)Chrome launches with sandbox disabled, single-process mode, and custom user data directory to avoid fingerprinting. Profile directory auto-cleaned on restart.
Allowed origins are whitelisted in
ALLOWED_ORIGINS set. Currently allows 2021-itmtank.forumgamers.net plus wildcard fallback.
PORT — Server port (default: 3000)PPTR_PROFILE_BASE — Chromium profile directory base pathNODE_ENV — Set to production in systemd service