A Chrome extension that analyzes your Wikipedia reading habits and provides personalized article recommendations based on your interests and reading patterns.
- Automatically tracks Wikipedia page visits
- Measures reading time and engagement
- Monitors scroll depth to understand reading patterns
- Extracts article categories for better recommendations
- Privacy-focused: all data stored locally in your browser
- Calculates engagement scores based on multiple factors:
- Scroll depth (40% weight)
- Time spent reading (40% weight)
- Article categories (20% weight)
- Maintains history of your most recent 100 articles
- Automatically cleans up old data
- Two types of recommendations:
- Based on your most engaged articles
- Based on your recent reading
- Uses Wikipedia's OpenSearch API
- Caches recommendations for 24 hours
- Up to 10 recommendations per category
- Clean, modern design
- Two main sections:
- Recommendations tab
- Reading History tab
- Reading statistics dashboard
- Easy-to-use article cards
- Responsive design
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked"
- Select the
wikipedia-projectdirectory
- Visit any Wikipedia article
- The extension will automatically track your reading
- Click the extension icon in your browser toolbar to:
- View personalized recommendations
- See your reading history
- Check your reading statistics
wikipedia-project/
├── manifest.json # Extension configuration
├── background.js # Background service worker
├── contentScript.js # Wikipedia page script
├── popup.html # Extension UI
├── popup.js # UI logic
└── icons/ # Extension icons
├── icon16.png
├── icon48.png
└── icon128.png
- Runs on Wikipedia pages
- Collects reading metrics
- Tracks user engagement
- Sends data to background script
- Manages data storage
- Calculates engagement scores
- Handles data cleanup
- Maintains recommendation cache
- Displays recommendations
- Shows reading history
- Presents usage statistics
- Handles user interactions
The extension uses the Wikipedia OpenSearch API:
- Endpoint:
https://en.wikipedia.org/w/api.php - Parameters:
action=opensearchformat=jsonlimit=10namespace=0
- Uses Chrome's local storage API
- Stores up to 100 most recent visits
- Caches API responses for 24 hours
- Automatically cleans up old data
This extension:
- Stores all data locally in your browser
- Does not send data to any external servers (except Wikipedia API for recommendations)
- Does not track personal information
- Does not use cookies or other tracking mechanisms
- Google Chrome browser
- Permissions:
- storage: for saving reading history
- tabs: for accessing current tab information
- activeTab: for reading current page content
- host permissions for wikipedia.org
To modify or enhance the extension:
- Make changes to the relevant files
- Test locally by loading unpacked extension
- Refresh the extension in Chrome to see changes
Feel free to:
- Submit bug reports
- Propose new features
- Create pull requests
- Improve documentation
This project is open source and available under the MIT License.
For issues, questions, or contributions, please:
- Check existing issues in the repository
- Create a new issue if needed
- Provide detailed information about your problem or suggestion