A Chrome extension that automatically detects Dutch postal codes on webpages and adds a copy functionality.
- Automatically detects Dutch postal codes (format: 4 digits + space + 2 letters, e.g., "3144 CB")
- Highlights detected postal codes with a subtle yellow background
- Shows a copy button when hovering over a postal code
- Visual feedback when a postal code is copied
- Works on Dutch websites by default, with option to enable on all websites
- Optimized performance with batch processing
- Observes DOM changes to detect postal codes in dynamically loaded content
- Visit the Chrome Web Store (link to be added)
- Click "Add to Chrome"
- Confirm the installation
- Download or clone this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" in the top-right corner
- Click "Load unpacked" and select the folder containing the extension files
- The extension should now be installed and active
- Visit any Dutch website containing postal codes
- The extension will automatically detect and highlight postal codes
- Hover over a highlighted postal code to reveal the copy button
- Click the copy button to copy the postal code to your clipboard
- A green checkmark will briefly appear to confirm the copy action
You can customize the extension's behavior by clicking on the extension icon in your toolbar:
- Enable on all websites: By default, the extension only runs on Dutch websites (*.nl domains). Enable this option to run the extension on all websites.
- Use performance mode: When enabled, the extension uses batch processing to reduce the impact on page performance. Disable for immediate processing (may cause lag on large pages).
- The extension only detects properly formatted Dutch postal codes (4 digits + space + 2 letters)
- It does not modify form fields or text inputs
- Postal codes inside scripts or style tags are ignored
- Performance settings help balance detection speed vs. browser performance
If the extension is making pages slow:
- Keep "Performance mode" enabled
- Disable "Enable on all websites" if you're not browsing Dutch content
- For very large pages, try refreshing with the extension disabled
- Add keyboard shortcut for copying selected postal codes
- Add options to customize highlight color
- Add ability to disable the extension for specific websites
- Implement postal code validation against official Dutch postal code database
MIT
Created by PostalCopy