Spaces:
Running
π LINKSCOUT - COMBINED EXTENSION COMPLETE!
Smart Analysis. Simple Answers.
β WHAT WAS DONE
I have successfully combined both extensions (mis and mis_2) into a single powerful extension called LinkScout. Here's what was created:
π New Directory Structure
d:\mis_2\LinkScout\
βββ combined_server.py β Combined backend server
βββ extension\ π¦ Chrome extension files
β βββ manifest.json β Extension manifest (renamed to LinkScout)
β βββ popup.html β Combined popup UI
β βββ popup.js β Combined popup logic
β βββ content.js β Combined content script with highlighting + sidebar
β βββ background.js β Service worker
β βββ styles.css β Styling
β βββ utils\ π Utility scripts
β β βββ contentExtractor_v2.js
β β βββ cache.js
β β βββ chunkAnalyzer.js
β β βββ contentExtractor.js
β βββ icons\ π¨ Extension icons
β βββ icon16.png
β βββ icon48.png
β βββ icon128.png
βββ reinforcement_learning.py π€ RL agent (from mis)
βββ image_analysis.py πΌοΈ Image analysis (from mis)
βββ linguistic_fingerprint.py π Phase 1 detection (from mis)
βββ claim_verifier.py β
Phase 1 detection (from mis)
βββ source_credibility.py β Phase 1 detection (from mis)
βββ propaganda_detector.py π’ Phase 2 detection (from mis)
βββ entity_verifier.py π€ Phase 2 detection (from mis)
βββ contradiction_detector.py β οΈ Phase 3 detection (from mis)
βββ network_analyzer.py π Phase 3 detection (from mis)
βββ known_false_claims.py π Offline database (from mis)
βββ google_search.py π Google API integration (from mis_2)
βββ google_config.json π§ Google API config (from mis_2)
βββ requirements.txt π All dependencies
βββ START_SERVER.bat π Windows startup script
βββ START_SERVER.ps1 π PowerShell startup script
βββ README.md π Complete documentation
π― COMBINED FEATURES
From MIS Extension (Groq-based):
β Groq AI agentic analysis with 3 specialized agents β Reinforcement Learning (learns from feedback) β Image analysis (AI-generated image detection) β Phase 1 Revolutionary Detection (Linguistic, Claims, Sources) β Phase 2 Revolutionary Detection (Entities, Propaganda, Verification) β Phase 3 Revolutionary Detection (Contradictions, Network patterns) β Offline false claims database β Web research with DuckDuckGo β Color-coded highlighting
From MIS_2 Extension (Pre-trained models):
β Pre-trained Models (RoBERTa, Emotion, NER, Hate Speech, Clickbait, Bias) β Chunk-based paragraph analysis β Google Search API integration β Sidebar display (non-intrusive analysis results) β Category detection (25+ news categories) β Multi-language support (Hindi, Marathi, etc.) β Content extraction utilities
New Combined Features:
β Unified backend server combining all analysis methods β Clean, modern UI with tabs (Overview, Details, Sources) β Intelligent score calculation using all models β Organized sidebar with percentage display and statistics β Smart highlighting with severity levels (red/yellow/blue) β One-click page scanning β Background analysis capability β Comprehensive error handling
π HOW TO USE
Step 1: Start the Server
Option A: Using Batch Script (Recommended)
1. Navigate to d:\mis_2\LinkScout\
2. Double-click START_SERVER.bat
3. Wait for server to start (will show "Server: http://localhost:5000")
Option B: Using PowerShell Script
1. Right-click START_SERVER.ps1
2. Select "Run with PowerShell"
Option C: Manual Start
cd d:\mis_2\LinkScout
python combined_server.py
Step 2: Load the Extension
- Open Chrome/Edge
- Go to
chrome://extensionsoredge://extensions - Enable "Developer mode" (toggle in top-right)
- Click "Load unpacked"
- Select folder:
d:\mis_2\LinkScout\extension - Extension should appear with π icon
- Pin it to toolbar for easy access
Step 3: Test It!
Test 1: Scan a News Page
- Open any news article (e.g., BBC, CNN, Times of India)
- Click the LinkScout icon
- Click "Scan Page" button
- Wait for analysis (10-30 seconds)
- Check results in popup
- Look for highlighted paragraphs on the page
- Click "Highlight" to see color-coded suspicious content
Test 2: Analyze Text
- Copy any article text
- Click LinkScout icon
- Paste text in input box
- Click "Analyze" button
- View comprehensive results
Test 3: Check URL
- Copy a news article URL
- Click LinkScout icon
- Paste URL in input box
- Click "Analyze" button
- Review analysis
π¨ WHAT THE EXTENSION LOOKS LIKE
Popup Interface:
- Header: LinkScout logo with tagline "Smart Analysis. Simple Answers."
- Input Box: Paste text or URL
- Buttons:
- π¬ Analyze (for text/URL)
- π Scan Page (analyze current page)
- π¨ Highlight (show suspicious paragraphs)
- β Clear (remove highlights)
- Results Area: Shows percentage score, verdict, and detailed analysis in tabs
Page Highlighting:
- π΄ Red border: High risk (>70% suspicious)
- π‘ Yellow border: Medium risk (40-70% suspicious)
- π΅ Blue border: Low risk (<40% suspicious)
Sidebar:
- Appears on right side of page
- Shows overall score and verdict
- Lists all suspicious paragraphs
- Includes summary and statistics
- Can be closed with X button
π§ BACKEND FUNCTIONALITY
What the Server Does:
Content Analysis Pipeline:
Input Content β Pre-trained Models (RoBERTa, Emotion, NER, etc.) β Groq AI Analysis (Research, Analysis, Conclusion agents) β Revolutionary Detection (Phases 1-3) β Google Search Verification β Scoring & Verdict Calculation β RL Agent Suggestion (optional) β JSON Response with all resultsModels Used:
- RoBERTa Fake News Classifier
- Emotion Classifier (7 emotions)
- Named Entity Recognition (NER)
- Hate Speech Detector
- Clickbait Detector
- Bias Detector
- Custom trained model (if available)
API Endpoints:
POST /api/v1/analyze-chunks- Main analysis endpoint (unified)POST /api/v1/analyze- Legacy endpointGET /health- Server health check
β οΈ IMPORTANT NOTES
Backend Functionality NOT Changed:
β All backend modules work exactly as before β No changes to analysis algorithms β No changes to model loading β No changes to scoring logic β Both systems' functionality fully preserved
What WAS Changed:
- Combined both servers into one unified server
- Created new unified frontend interface
- Merged content scripts for highlighting + sidebar
- Added better error handling
- Improved UI organization
- Made popup cleaner and more modern
API Keys:
- Groq API: Already configured in
combined_server.py - Google API: Update
google_config.jsonwith your keys (optional)
π TROUBLESHOOTING
Server Won't Start:
Error: Port 5000 already in use
Solution: Kill existing process or change port in combined_server.py
Extension Not Loading:
Error: Manifest error
Solution: Check manifest.json for syntax errors
Models Not Loading:
Error: Model not found
Solution: Ensure D:\huggingface_cache exists and has models
Run: python -c "from transformers import AutoTokenizer; AutoTokenizer.from_pretrained('hamzab/roberta-fake-news-classification')"
No Analysis Results:
Error: Server connection failed
Solution:
1. Check server is running (http://localhost:5000/health)
2. Check browser console for errors (F12 β Console)
3. Try reloading extension
π NEXT STEPS
- Start the Server: Run
START_SERVER.bat - Load Extension: Load
d:\mis_2\LinkScout\extensionin Chrome - Test It: Visit a news site and click "Scan Page"
- Enjoy: Your combined extension is ready! π
π‘ WHICH EXTENSION TO LOAD?
ANSWER: Load the NEW LinkScout extension!
Location: d:\mis_2\LinkScout\extension
This is the combined extension that includes ALL features from both:
- β mis extension (Groq AI, RL, Image Analysis, Revolutionary Detection)
- β mis_2 extension (Pre-trained Models, Chunk Analysis, Google Search, Sidebar)
You can now UNLOAD the old extensions (mis and mis_2) and use only LinkScout.
π SUMMARY
You now have a single, powerful extension called LinkScout that:
- Combines Groq AI + Pre-trained Models
- Has all 8 phases of revolutionary detection
- Uses RL to learn and improve
- Provides clean, organized results
- Highlights suspicious content
- Shows analysis in sidebar
- Integrates Google search
- Maintains ALL backend functionality from both systems
Name: LinkScout
Tagline: Smart Analysis. Simple Answers.
Location: d:\mis_2\LinkScout
Server: Run START_SERVER.bat or combined_server.py
Extension: Load extension folder in Chrome/Edge
Enjoy your combined pro extension! πβ¨
Created by combining the best of both worlds - MIS (Groq) + MIS_2 (Pre-trained Models)