Spaces:
Running
Running
π QUICK TEST GUIDE - LinkScout Extension
β Server Status
Server Running: http://localhost:5000
Models Loaded: 8 (RoBERTa, Emotion, NER, Hate, Clickbait, Bias, Custom, Categories)
Groq AI: Active (4 Agents)
Revolutionary Detection: Active (8 Phases)
π§ͺ Testing Steps
Step 1: Reload Extension
1. Open Chrome
2. Go to: chrome://extensions
3. Find "LinkScout"
4. Click "Reload" button
5. Check for errors in console (should be none)
Step 2: Test on BBC Article
1. Navigate to: https://www.bbc.com/news/articles/czxk8k4xlv1o
2. Click LinkScout icon in toolbar
3. Click "Scan Page" button
4. Wait for analysis (10-15 seconds)
Step 3: Verify Sidebar Display
β Check These Sections Appear:
Header
- Verdict (FAKE/SUSPICIOUS/CREDIBLE)
- Misinformation percentage
- Total paragraphs analyzed
Groq AI Research (Purple card)
- Research summary with sources
Detailed Analysis (Pink card)
- Pattern analysis
Final Conclusion (Green card)
- Verdict
β NEW: What is Correct (Green)
- Facts that are accurate
β NEW: What is Wrong (Red)
- Misinformation identified
β NEW: What Internet Says (Blue)
- Credible sources' consensus
β NEW: My Recommendation (Yellow)
- Expert advice
β NEW: Why This Matters (Orange)
- Significance explanation
Pre-trained Models (Light purple)
- RoBERTa: X% Fake
- Emotion: anger/fear/etc.
- Hate Speech: X%
- Clickbait: X%
- Bias: biased/neutral
- β Custom Model: X% (NEW!)
- β Categories: Politics, War... (NEW!)
- Named Entities: Names, places...
Revolutionary Detection (8 Phases)
- Linguistic Fingerprint
- Claim Verification
- Source Credibility
- Entity Verification
- Propaganda Analysis (techniques list - NO ERROR!)
- Verification Network
- Contradiction Detection
- Network Analysis
β NEW: Google Search Results (Yellow card)
- 5+ fact-checking links
- Clickable URLs
- Snippets from sources
Suspicious Paragraphs List
- Each paragraph with score
- "Why Flagged" explanation
- Click-to-scroll functionality
β Expected Results
No Errors
- β
propaganda.techniques.join is not a functionβ Should NOT appear - β
data.X is undefinedβ Should NOT appear - β All sections load properly
- β Sidebar scrolls smoothly
Correct Display
- β All 5 new sections appear (what's right/wrong/internet/recommendation/why)
- β Google search results with clickable links
- β Custom model percentage shown
- β Categories/labels displayed
- β Propaganda techniques shown as comma-separated list (no error)
Functionality
- β Click suspicious paragraph β scrolls to it on page
- β Paragraph flashes blue when clicked
- β Click Google result link β opens in new tab
- β Sidebar scrollable with all content
π If You See Errors
Error: "propaganda.techniques.join is not a function"
Status: β SHOULD BE FIXED NOW If still appears:
- Check browser console for exact error
- Hard reload extension (Ctrl+Shift+R on chrome://extensions)
- Check server terminal output
Error: "Cannot read property 'X' of undefined"
Solution:
- Check if server is running (http://localhost:5000/health)
- Check network tab for failed requests
- Reload page and try again
Error: Missing sections in sidebar
Solution:
- Open DevTools (F12)
- Check Console for JavaScript errors
- Check Network tab for response data
- Verify server returned all fields
π Sample Expected Output
Console (should see):
β
Analysis complete
π Verdict: SUSPICIOUS - VERIFY
π Misinformation: 65%
π Chunks: 40 analyzed, 8 fake, 15 suspicious
Sidebar (should show):
π¨ SUSPICIOUS - VERIFY
Misinformation: 65%
Analyzed: 40 Suspicious: 23 Safe: 17
π€ GROQ AI RESEARCH REPORT
Based on my research of credible sources...
βοΈ WHAT IS CORRECT:
- Fact 1
- Fact 2
β WHAT IS WRONG:
- Misinformation 1
- Misinformation 2
π WHAT THE INTERNET SAYS:
Credible sources indicate...
π‘ MY RECOMMENDATION:
Readers should verify...
β οΈ WHY THIS MATTERS:
This is significant because...
π€ PRE-TRAINED ML MODELS
πΉ RoBERTa: 72% Fake
πΉ Custom Model: 68% Misinformation
πΉ Categories: Politics, War & Conflict
π’ PROPAGANDA ANALYSIS
Score: 100/100
Techniques: fear-mongering, scapegoating, loaded-language
π GOOGLE SEARCH RESULTS
π Snopes Fact Check
[https://snopes.com/...]
"This claim has been debunked..."
π¨ SUSPICIOUS PARAGRAPHS (23)
π Para 1 [85/100]
Why Flagged:
β’ Fake: 85%, Custom: 68%
β’ Emotion: anger, Hate: 45%
π Click to jump
β Success Criteria
Your test is SUCCESSFUL if you see:
- No console errors
- All 5 new sections (what's right/wrong/internet/recommendation/why)
- Google search results with links
- Custom model percentage
- Categories/labels
- Propaganda techniques (no .join() error)
- Suspicious paragraphs with explanations
- Click-to-scroll works
- Sidebar displays all content
π― Quick Verification Checklist
Run through this 2-minute check:
- β Server running? β Check http://localhost:5000/health
- β Extension reloaded? β Check chrome://extensions
- β Scan works? β Click "Scan Page" on BBC article
- β Sidebar opens? β Should appear on right side
- β No errors? β Check browser console (F12)
- β All sections present? β Scroll through sidebar
- β Links clickable? β Click a Google result link
- β Click-to-scroll works? β Click a suspicious paragraph
If all 8 are β β SUCCESS! Your LinkScout extension is complete!
Ready to test now!
Server: β
Running
Extension: β
Ready
Features: β
100% Complete