A Chrome extension that helps with downloading PDFs from Knowledge Planet and displays hello world messages.
-
Hello World Messages: Displays friendly hello messages in multiple ways:
- Popup interface with interactive button
- Floating notification on Knowledge Planet pages
- Console logging for debugging
- Chrome storage integration
-
PDF Download Helper: Ready to be extended for automatic PDF downloads from Knowledge Planet
npm install
npm run buildYou need to create icon files in the icons/ directory:
icon16.png(16x16 pixels)icon48.png(48x48 pixels)icon128.png(128x128 pixels)
See CREATE_ICONS.md for detailed instructions.
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
knowledge-planet-helperfolder - The extension should now appear in your extensions list
- Popup Interface: Click the extension icon in the toolbar to open the popup with a "Say Hello" button
- Page Notifications: Visit any Knowledge Planet page (wx.zsxq.com) to see a floating hello message
- Console Messages: Check the browser console for hello world messages
- Storage: The extension remembers your last hello message
- Click the extension icon to open the popup
- Click "Say Hello" to see random hello messages
- Visit
https://wx.zsxq.com/group/*to see content script in action - Check browser console (F12) for background script messages
npm run build- Build for productionnpm run dev- Build and watch for changesnpm run clean- Clean the dist folder
knowledge-planet-helper/
├── src/
│ ├── popup.ts # Popup interface logic
│ ├── background.ts # Background service worker
│ └── content.ts # Content script for web pages
├── dist/ # Built files (generated)
├── icons/ # Extension icons (you need to create these)
├── popup.html # Popup HTML interface
├── manifest.json # Extension configuration
└── package.json # Dependencies
- Interactive interface with hello world button
- Displays random hello messages
- Stores messages in chrome.storage
- Service worker that runs in the background
- Handles extension lifecycle events
- Processes messages from other components
- Runs on Knowledge Planet pages
- Shows floating hello notifications
- Communicates with background script
This hello world extension is ready to be extended with:
- PDF detection and download functionality
- User preferences and settings
- Advanced UI components
- Data persistence and sync
- Icons not showing: Make sure you have created the icon files in the
icons/directory - Extension not loading: Check that you've built the project with
npm run build - Hello messages not appearing: Check the browser console for any JavaScript errors
- Content script not working: Make sure you're visiting a Knowledge Planet page (wx.zsxq.com)
Happy coding! 🎉