Files
crawl4ai/docs/md_v2/core/llmtxt.md
UncleCode 926592649e Add Crawl4AI Assistant Chrome Extension
- Created manifest.json for the Crawl4AI Assistant extension.
- Added popup HTML, CSS, and JS files for the extension interface.
- Included icons and favicon for the extension.
- Implemented functionality for schema capture and code generation.
- Updated index.md to reflect the availability of the new extension.
- Enhanced LLM Context Builder layout and styles for consistency.
- Adjusted global styles for better branding and responsiveness.
2025-06-08 18:34:05 +08:00

1.7 KiB

I

<script> // Iframe height adjustment function resizeLLMtxtIframe() { const iframe = document.getElementById('llmtxt-frame'); if (iframe) { const headerHeight = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--header-height') || '55'); const topOffset = headerHeight + 20; const availableHeight = window.innerHeight - topOffset; iframe.style.height = Math.max(800, availableHeight) + 'px'; } } // Run immediately and on resize/load resizeLLMtxtIframe(); let resizeTimer; window.addEventListener('load', resizeLLMtxtIframe); window.addEventListener('resize', () => { clearTimeout(resizeTimer); resizeTimer = setTimeout(resizeLLMtxtIframe, 150); }); // Remove Footer & HR from parent page document.addEventListener('DOMContentLoaded', () => { setTimeout(() => { const footer = window.parent.document.querySelector('footer'); if (footer) { const hrBeforeFooter = footer.previousElementSibling; if (hrBeforeFooter && hrBeforeFooter.tagName === 'HR') { hrBeforeFooter.remove(); } footer.remove(); resizeLLMtxtIframe(); } }, 100); }); </script> <style> #terminal-mkdocs-main-content { padding: 0 !important; margin: 0; width: 100%; height: 100%; overflow: hidden; } #terminal-mkdocs-main-content .llmtxt-container { margin: 0; padding: 0; max-width: none; overflow: hidden; } #terminal-mkdocs-toc-panel { display: none !important; } </style>