"use client"; import React from "react"; import { AppLayout } from "@/components/app-layout"; import { Download, Chrome, Zap, Shield, Sparkles, Check, Globe } from "lucide-react"; import { Button } from "@/components/ui/button"; const features = [ { icon: , title: "Smart Detection in 8 Ways", description: "Analyzes articles from multiple angles - checking the writing style, verifying facts, examining sources, identifying propaganda tactics, spotting contradictions, and detecting fake images" }, { icon: , title: "Instant Fact Verification", description: "Automatically checks claims against reliable sources and a database of known misinformation, giving you accurate results in seconds" }, { icon: , title: "Gets Smarter Over Time", description: "Uses advanced AI that learns from your feedback to become more accurate with every use, helping you spot fake news and misleading content" }, ]; const browsers = [ { name: "Chrome", icon: , downloadUrl: "#", supported: true }, { name: "Firefox", icon: , downloadUrl: "#", supported: true }, { name: "Edge", icon: , downloadUrl: "#", supported: true }, ]; export default function ExtensionsPage() { const [isDownloading, setIsDownloading] = React.useState(false); const [downloadError, setDownloadError] = React.useState(null); const handleDownloadExtension = async () => { try { setIsDownloading(true); setDownloadError(null); console.log('📥 Starting extension download...'); // Fetch the extension ZIP file from the backend const response = await fetch('/api/download-extension', { method: 'GET', }); if (!response.ok) { throw new Error(`Download failed: ${response.status} ${response.statusText}`); } // Get the blob data const blob = await response.blob(); // Create a download link const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'linkscout-extension.zip'; document.body.appendChild(a); a.click(); // Cleanup window.URL.revokeObjectURL(url); document.body.removeChild(a); console.log('✅ Extension downloaded successfully!'); // Show success message alert('✅ Extension downloaded! Extract the ZIP file and follow the installation instructions below.'); } catch (error) { console.error('❌ Download failed:', error); const errorMsg = error instanceof Error ? error.message : 'Download failed'; setDownloadError(errorMsg); alert(`❌ ${errorMsg}\n\nPlease ensure the backend server is running on port 5000.`); } finally { setIsDownloading(false); } }; return (
{/* Hero Section - Mobile optimized */}
Browser Extension

LinkScout Browser Extension

Transform your browsing experience with AI-powered search and insights, available right in your browser

{downloadError && (
❌ {downloadError}
)}
{/* Features Section - Mobile optimized */}

Why Use LinkScout Extension?

{features.map((feature, index) => (
{feature.icon}

{feature.title}

{feature.description}

))}
{/* Browser Support Section - Mobile optimized */}

Available For Your Browser

{browsers.map((browser, index) => (
{browser.icon}

{browser.name}

{browser.supported ? ( <>
Supported
) : ( Coming Soon )}
))}
{/* Installation Steps - Mobile optimized */}

📦 How to Install the Extension

Follow these simple steps to install LinkScout extension in your browser. The process takes less than 2 minutes!

{[ { title: "Download the Extension", description: "Click the 'Download Extension' button above to download the ZIP file to your computer", tip: "💡 Save it somewhere you can easily find it, like your Downloads folder" }, { title: "Extract the ZIP File", description: "Right-click the downloaded ZIP file and select 'Extract All' or 'Extract Here'", tip: "📁 This will create a folder named 'extension' containing all the extension files" }, { title: "Open Browser Extensions Page", description: "Open your browser and navigate to:", code: "chrome://extensions (Chrome) or edge://extensions (Edge)", tip: "⌨️ You can copy and paste this directly into your browser's address bar" }, { title: "Enable Developer Mode", description: "Find the 'Developer mode' toggle switch in the top right corner and turn it ON", tip: "🔧 This allows you to load extensions that aren't from the Chrome Web Store" }, { title: "Load the Extension", description: "Click the 'Load unpacked' button and select the folder you extracted in Step 2", tip: "📂 Make sure to select the 'extension' folder, not the ZIP file" }, { title: "Pin to Toolbar (Optional)", description: "Click the puzzle piece icon in your browser toolbar and pin LinkScout for easy access", tip: "📌 This makes the extension icon always visible in your toolbar" }, { title: "Start Using LinkScout!", description: "Click the LinkScout icon in your toolbar to start analyzing articles and detecting misinformation", tip: "🎉 You're all set! Visit any news article and click the extension to analyze it" } ].map((step, index) => (
{index + 1}

{step.title}

{step.description}

{step.code && (
{step.code}
)}
{step.tip.split(' ')[0]} {step.tip.substring(step.tip.indexOf(' ') + 1)}
))}
{/* Troubleshooting Section */}

🔧 Troubleshooting

Can't find "Load unpacked" button?

Make sure Developer Mode is enabled (toggle in top right corner)

Extension not working after installation?

Refresh the page you want to analyze, then click the extension icon

Need help?

Contact us at support@linkscout.ai or visit our help center

); }