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 ...@@ -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: - **Context Menu Privacy Options**: Added right-click options on video/picture pages:
- 👥 Set to Friends Only - 👥 Set to Friends Only
- 🌐 Set to All Fetlifers - 🌐 Set to All Fetlifers
- **Image-Based Context Menu**: Context menu items now appear when right-clicking directly over images - **Image and Link Context Menu**: Context menu items now appear when right-clicking over images or links
- **Enhanced User Experience**: More intuitive interaction by clicking on specific images - **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 ### Enhanced
- **User Interface**: Added privacy level selector above the action buttons - **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 ...@@ -59,14 +59,14 @@ A Chrome browser extension that automates privacy settings on FetLife.com. When
4. Notifications will show progress and completion status 4. Notifications will show progress and completion status
### Method 5: Context Menu (Direct Privacy Setting) ### Method 5: Context Menu (Direct Privacy Setting)
1. Navigate to a FetLife page with images or videos 1. Navigate to a FetLife page with images, videos, or links
2. Right-click directly over an image 2. Right-click directly over an **image** or **link**
3. Choose from the privacy options: 3. Choose from the privacy options:
- **👥 Set to Friends Only** - Sets privacy to friends-only - **👥 Set to Friends Only** - Sets privacy to friends-only
- **🌐 Set to All Fetlifers** - Makes content visible to all FetLife users - **🌐 Set to All Fetlifers** - Makes content visible to all FetLife users
4. A notification will confirm the privacy setting change 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 ## Donations
......
...@@ -35,19 +35,19 @@ chrome.runtime.onInstalled.addListener(() => { ...@@ -35,19 +35,19 @@ chrome.runtime.onInstalled.addListener(() => {
documentUrlPatterns: ['https://fetlife.com/*'] documentUrlPatterns: ['https://fetlife.com/*']
}); });
// Create privacy-specific context menu items for images on FetLife pages // Create privacy-specific context menu items for images and links on FetLife pages
// These will appear when right-clicking over images // These will appear when right-clicking over images or links
chrome.contextMenus.create({ chrome.contextMenus.create({
id: 'set-friends-only', id: 'set-friends-only',
title: '👥 Set to Friends Only', title: '👥 Set to Friends Only',
contexts: ['image'], contexts: ['image', 'link'],
documentUrlPatterns: ['https://fetlife.com/*'] documentUrlPatterns: ['https://fetlife.com/*']
}); });
chrome.contextMenus.create({ chrome.contextMenus.create({
id: 'set-all-fetlifers', id: 'set-all-fetlifers',
title: '🌐 Set to All Fetlifers', title: '🌐 Set to All Fetlifers',
contexts: ['image'], contexts: ['image', 'link'],
documentUrlPatterns: ['https://fetlife.com/*'] 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