A Chrome extension that analyzes the current tab, finds related prediction markets on Polymarket, and displays the current probability. The analysis is performed using the Gemini API, and prediction market data is accessed through the Polymarket API.
π Project Page: wo.y3z.ai | π§© Chrome Web Store: Install Extension
- π Smart Content Analysis: Uses Google's Gemini AI to analyze the current web page and extract relevant topics
- π Polymarket Integration: Automatically finds related prediction markets on Polymarket
- πΉ Real-time Probabilities: Displays current market probabilities for related predictions
- βοΈ Easy Configuration: Simple setup with your Gemini API key
- π¨ Modern UI: Clean, intuitive interface with gradient design
- π Privacy-First: No backend servers, no data collection, no trackingβall processing happens directly in your browser
- π On-Device AI Option: Use Gemini Nano for 100% local analysisβyour data never leaves your device
- Google Chrome browser
- Gemini API key (get one from Google AI Studio)
- Download
world-opinion.crxfrom the latest release - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Drag and drop the
.crxfile onto the page
- Clone or download this repository
git clone https://github.com/y3zai/world-opinion.git cd world-opinion - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked" and select the project directory
- Click the World Opinion extension icon in your Chrome toolbar
- Click the βοΈ Settings button
- Enter your Gemini API key
- Click "Save Settings"
- Navigate to any web page you want to analyze (news article, blog post, etc.)
- Click the World Opinion extension icon
- Click "π See How World Says"
- Wait for the analysis to complete
- View related prediction markets and their current probabilities
- Click on any market to view it on Polymarket
- Content Extraction: The extension extracts text content from the current web page
- AI Analysis: The Gemini API analyzes the content and identifies key topics, entities, and events
- Market Search: Using the extracted keywords, the extension searches Polymarket's API for related prediction markets
- Display Results: Related markets are displayed with their current probabilities and other relevant information
The extension uses Google's Gemini Pro model to analyze web content. The API:
- Processes page titles, descriptions, and main content
- Extracts relevant keywords and topics
- Identifies entities and events that might have prediction markets
The extension queries Polymarket's CLOB (Central Limit Order Book) API to:
- Search for active prediction markets
- Retrieve market probabilities
- Get market metadata (volume, descriptions, etc.)
World Opinion is designed with privacy as a core principle. Unlike many extensions that route your data through their servers, World Opinion has no backend serversβall processing happens directly in your browser.
| Traditional Extensions | World Opinion |
|---|---|
| Your data β Their servers β API | Your data β API directly |
| They can log, analyze, sell your data | No intermediary, no data exposure |
| Requires trusting the extension developer | Trust is verifiable (open source) |
- π« No Backend Servers: Your data never touches our servers because we don't have any
- π Local Storage Only: Your API key is stored locally in Chrome's storage, never transmitted except to Google's API
- π‘ Direct API Calls: Page content goes directly from your browser to Google Geminiβno middleman
- π No Tracking: No analytics, no usage statistics, no cookies, no user accounts
- π User-Initiated Only: Data is only processed when you click "See How World Says"βnever in the background
- π Open Source: Review our code anytime to verify these claims
For users who want absolute privacy, World Opinion supports Gemini NanoβGoogle's on-device AI model that runs entirely on your computer:
- Zero Network Transmission: Your page content never leaves your device
- No API Key Required: Works without any external service
- Instant Processing: No network latency, faster results
- Available Automatically: If your device supports Gemini Nano, it appears as an option in Settings
With Gemini Nano, the only network calls are to Polymarket to fetch market dataβthe AI analysis happens 100% locally.
See our full Privacy Policy for complete details.
world-opinion/
βββ manifest.json # Chrome extension manifest (V3)
βββ sidepanel.html # Extension side panel UI
βββ sidepanel.css # Side panel styling
βββ background.js # Background service worker
βββ index.html # Landing page
βββ js/ # JavaScript modules
β βββ app.js # Main application entry point
β βββ api-gemini.js # Gemini API integration
β βββ api-polymarket.js # Polymarket API integration
β βββ cache.js # Caching utilities
β βββ config.js # Configuration constants
β βββ state.js # State management
β βββ ui.js # UI rendering logic
β βββ utils.js # Helper functions
βββ icons/ # Extension icons
β βββ icon.svg # Source icon (transparent)
β βββ icon16.png
β βββ icon48.png
β βββ icon128.png
β βββ chrome.png # Progress indicator icon
β βββ gemini.png # Progress indicator icon
β βββ polymarket.png # Progress indicator icon
βββ assets/ # Landing page assets
βββ screenshots/ # Store screenshots
βββ PRIVACY_POLICY.md # Privacy policy
βββ README.md # This file
- Chrome Extension Manifest V3: Latest extension format
- Gemini API: AI-powered content analysis
- Polymarket API: Prediction market data
- Vanilla JavaScript: No frameworks, lightweight and fast
- CSS3: Modern styling with gradients and animations
- Make sure you've entered a valid API key in the settings
- Verify your API key is active at Google AI Studio
- Some pages may block content script injection
- Try the extension on a different page
- Ensure the page has loaded completely
- The current page topic may not have active markets on Polymarket
- Try a page with more specific, event-driven content (politics, sports, etc.)
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this project for any purpose.
This extension is for informational purposes only. Always do your own research before participating in prediction markets. The extension is not affiliated with Polymarket or Google.
For issues, questions, or suggestions, please open an issue on GitHub.
