A Chrome/Brave Manifest V3 extension that allows you to upload images to Imgur with a simple right-click. Perfect for quickly sharing images online!
- Right-click upload: Right-click any image on any website to upload it to Imgur
- Automatic link copying: The Imgur link is automatically copied to your clipboard
- Configurable behavior: Customize how the extension behaves after upload
- Direct image links: Option to open direct image URLs instead of Imgur pages
- Focus control: Choose whether to focus the new tab or stay on current page
- Notification control: Enable/disable browser notifications
- Anonymous uploads: No Imgur account required - uses public Client ID
- Cross-origin support: Works with images from any website
- File type validation: Supports JPEG, PNG, GIF, WebP, BMP, TIFF
- Size validation: Maximum file size of 10MB
- Clone or download this repository
- Load the extension:
- Open Chrome/Brave and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select this folder
- Open Chrome/Brave and go to
- That's it! No configuration needed - uses public Client ID
Once published to Chrome Web Store, users can install it directly from the store.
- Find an image on any website
- Right-click on the image
- Select "imgurpload" from the context menu
- Wait for upload - you'll see a notification (if enabled)
- Done! The Imgur link is copied to your clipboard and opens in a new tab
Access the extension settings by:
- Right-click the extension icon in the toolbar
- Select "Options" from the context menu
- Configure your preferred behavior:
- Open Direct Image Link: Opens direct image URL instead of Imgur page
- Do Not Focus New Tab: Keeps focus on current page
- Copy Image URL to Clipboard: Automatically copies the link
- Show Browser Notifications: Enable/disable popup notifications
- Manifest V3: Uses the latest Chrome extension standard
- Service Worker: Handles background processing and API calls
- Offscreen Document: Manages clipboard operations (required by MV3)
- Cross-origin Fetch: Safely fetches images from any website
- Base64 Encoding: Converts images for Imgur API compatibility
imgurpload/
├── manifest.json # Extension configuration
├── background.js # Service worker (main logic)
├── offscreen.html # Offscreen document for clipboard
├── offscreen.js # Clipboard handling
├── icons/ # Extension icons (16, 32, 48, 128px)
└── README.md # This file
- Endpoint:
POST https://api.imgur.com/3/image - Authentication: Client-ID header
- Format: Base64 encoded images
- Response: Returns direct image URL and Imgur page URL
contextMenus: Add right-click menu itemsnotifications: Show upload statusclipboardWrite: Copy links to clipboardoffscreen: Manage clipboard operationsstorage: Store user settings<all_urls>: Fetch images from any website
- Chrome or Brave browser
- Basic understanding of Chrome extensions
- Load the extension in developer mode
- Test on various websites with different image types
- Check console for any errors during development
- Configure settings to test different behaviors
Test the extension with:
- Different image formats: JPG, PNG, GIF, WebP
- Various websites: News sites, social media, e-commerce
- Different image sizes: Small thumbnails to large images
- Cross-origin images: Images from different domains
"Couldn't fetch image bytes"
- The image might be protected or blocked
- Try with a different image or website
"Upload failed"
- Check your internet connection
- Check if you've hit Imgur rate limits
Clipboard not working
- Make sure you've granted clipboard permissions
- Try refreshing the page and testing again
- Open Chrome DevTools (
F12) - Go to Console tab - look for error messages from the extension
- Check Service Worker logs:
- Go to
chrome://extensions/ - Find "imgurpload" extension
- Click "Service Worker" to open the service worker console
- Go to
- Check the Network tab for API calls
- No data collection: The extension doesn't collect or store personal data
- Anonymous uploads: Images are uploaded anonymously to Imgur
- Local storage only: Settings are stored locally in your browser
- No tracking: No analytics or tracking scripts
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - feel free to use and modify as needed.
If you encounter issues:
- Check the troubleshooting section above
- Look at the browser console for error messages
- Check the service worker console for detailed logs
- Test with different images and websites
- Try adjusting the extension settings
- Initial release
- Right-click image imgurpload
- Automatic link copying
- Cross-origin image support
- Manifest V3 compatibility
- Configurable settings
- Direct image link support
- Focus control for new tabs
- Notification preferences
- Public Client ID (no setup required)