Commit 97c751d3 authored by Stefy Spora's avatar Stefy Spora

Update context menu to work over both images and links

- Change context menu contexts from ['image'] to ['image', 'link']
- Context menu items now appear when right-clicking over images OR links
- Enhanced user experience with dual context support
- Updated README.md to reflect new image/link context menu behavior
- Updated CHANGELOG.md with dual context functionality details
- Maintains all existing functionality while expanding interaction options
parent 4712d830
......@@ -14,8 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Context Menu Privacy Options**: Added right-click options on video/picture pages:
- 👥 Set to Friends Only
- 🌐 Set to All Fetlifers
- **Image-Based Context Menu**: Context menu items now appear when right-clicking directly over images
- **Enhanced User Experience**: More intuitive interaction by clicking on specific images
- **Image and Link Context Menu**: Context menu items now appear when right-clicking over images or links
- **Enhanced User Experience**: More intuitive interaction with direct image/link interaction
- **Dual Context Support**: Works on both visual elements (images) and navigational elements (links)
### Enhanced
- **User Interface**: Added privacy level selector above the action buttons
......
......@@ -59,14 +59,14 @@ A Chrome browser extension that automates privacy settings on FetLife.com. When
4. Notifications will show progress and completion status
### Method 5: Context Menu (Direct Privacy Setting)
1. Navigate to a FetLife page with images or videos
2. Right-click directly over an image
1. Navigate to a FetLife page with images, videos, or links
2. Right-click directly over an **image** or **link**
3. Choose from the privacy options:
- **👥 Set to Friends Only** - Sets privacy to friends-only
- **🌐 Set to All Fetlifers** - Makes content visible to all FetLife users
4. A notification will confirm the privacy setting change
**Note**: The context menu items appear when right-clicking over images, making it easy to quickly change privacy settings for specific media items.
**Note**: The context menu items appear when right-clicking over images or links, making it easy to quickly change privacy settings for specific media items or navigate to media via links.
## Donations
......
......@@ -35,19 +35,19 @@ chrome.runtime.onInstalled.addListener(() => {
documentUrlPatterns: ['https://fetlife.com/*']
});
// Create privacy-specific context menu items for images on FetLife pages
// These will appear when right-clicking over images
// Create privacy-specific context menu items for images and links on FetLife pages
// These will appear when right-clicking over images or links
chrome.contextMenus.create({
id: 'set-friends-only',
title: '👥 Set to Friends Only',
contexts: ['image'],
contexts: ['image', 'link'],
documentUrlPatterns: ['https://fetlife.com/*']
});
chrome.contextMenus.create({
id: 'set-all-fetlifers',
title: '🌐 Set to All Fetlifers',
contexts: ['image'],
contexts: ['image', 'link'],
documentUrlPatterns: ['https://fetlife.com/*']
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment