Smarter Search Results for Google
A Chrome extension that transforms your Google search experience by organizing results into meaningful categories and ranking them by credibility and relevance.
Built for the Elastic x Google Cloud Hackathon.
Current Google search results are cluttered with:
- Ads and sponsored content at the top
- Irrelevant results mixed with quality sources
- No clear categorization of content types
- Valuable academic papers and journals buried pages deep
Query automatically:
- Detects when you search on Google
- Analyzes the search results using AI
- Categorizes results into logical groups:
- Academic & Research (journals, papers, studies)
- Video Content (tutorials, lectures)
- Online Courses (structured learning)
- Websites & Blogs (articles, guides)
- Books & Textbooks
- Ranks by credibility and relevance
- Displays in a beautiful, organized interface
- Automatic Detection: Works seamlessly with your Google searches
- Smart Categorization: Results organized by content type
- Credibility Scores: See how trustworthy each source is
- One-Click Access: Click any result to open the original source
- Beautiful UI: Modern, responsive design with smooth animations
- Fast Loading: Results appear in 2-3 seconds
- No Setup Required: Works right out of the box
-
Clone or download this repository
cd /path/to/Query -
Open Chrome and navigate to:
chrome://extensions/ -
Enable "Developer mode" (toggle in top-right corner)
-
Click "Load unpacked"
-
Select the Query folder
-
Done! The extension is now installed
- You should see the Query icon in your Chrome toolbar
- Click it to see the popup with extension info
- Go to Google.com
- Search for anything (e.g., "teach me biology")
- Query automatically opens a new tab with organized results
- Browse by category and click any result to visit the source
- Search on Google normally
- Look for the "Get Better Results" button (bottom-right of page)
- Click it to open Query's organized results
- Click the Query icon in your toolbar
- Click "Try a Search on Google"
- It will demonstrate with an example search
Query/
├── manifest.json # Extension configuration
├── content.js # Detects Google searches
├── background.js # Handles API communication
├── popup.html # Extension popup UI
├── results.html # Main results page
├── styles/
│ └── results.css # Styling for results page
├── scripts/
│ ├── popup.js # Popup functionality
│ └── results.js # Results page logic
└── icons/ # Extension icons
├── icon16.png
├── icon48.png
└── icon128.png
Currently, the extension uses mock data for demonstration purposes. To connect your own backend:
-
Edit
background.js:const API_ENDPOINT = 'https://your-api-endpoint.com/api/search';
-
Your API should:
- Accept POST requests with
{ query: "search term" } - Return results in this format:
{ "query": "search term", "categories": { "academic": [...], "videos": [...], "courses": [...], "websites": [...], "books": [...] }, "metadata": { "totalResults": 15, "processingTime": "0.8s", "searchDepth": 50 } }
- Accept POST requests with
-
Each result should include:
{ "title": "Result Title", "url": "https://...", "description": "Brief description", "source": "Source name", "credibility": 95 }
Edit styles/results.css to change the color scheme:
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--academic-color: #667eea;
--videos-color: #f5576c;
/* ... more colors */
}Add or modify categories in:
results.html(HTML structure)scripts/results.js(JavaScript logic)styles/results.css(styling)
- Frontend: Vanilla HTML/CSS/JavaScript
- Extension API: Chrome Manifest V3
- Backend (to be integrated):
- Elastic Search (for ranking/indexing)
- Google Cloud (hosting/compute)
- Web scraping (for fetching results)
- ML model (for credibility scoring)
- Integrate with real backend API
- Add filters (date range, content type toggles)
- Implement save/bookmark functionality
- Add AI-powered summaries for each result
- Support for more search engines (Bing, DuckDuckGo)
- User preferences and customization
- Dark mode toggle
- Browser sync across devices
- Firefox and Edge support
- Be mindful of Google's Terms of Service
- Consider using Google Custom Search API as an alternative
- Implement rate limiting to avoid being blocked
- Current mock data loads in ~800ms
- Real backend should target < 3 seconds
- Consider caching frequently searched terms
- All searches are processed through your backend
- No data is stored by the extension itself
- Consider adding privacy policy for production use
This project was created for a hackathon. Ideas for improvement:
- Backend Integration: Help connect to Elastic/GCP backend
- ML Model: Improve credibility scoring algorithm
- UI/UX: Suggest design improvements
- Features: Add filters, bookmarks, summaries
- Testing: Write tests for extension components
This project is open source and available for educational purposes.
Created for the Elastic x Google Cloud Hackathon.
Happy Searching!
If you encounter any issues, check the Chrome Developer Console (F12) for error messages.