Commit 8eea4178 authored by Stefy Spora's avatar Stefy Spora

Add video context menu support

- Add 'video' to context menu contexts array in background.js
- Update all context menu items to work on video elements:
  * Privaxy
  * Run on All Media
  * Set to Friends Only
  * Set to All Fetlifers
- Update README.md to document video context menu support
- Users can now right-click directly on video elements to access privacy options
parent af912bd8
......@@ -49,13 +49,13 @@ A Chrome browser extension that automates privacy settings on FetLife.com. When
### Method 3: Context Menu (Single Page)
1. Navigate to a FetLife picture or video page
2. Right-click anywhere on the page
2. Right-click anywhere on the page, image, link, or video element
3. Select "Privaxy" from the context menu
4. A notification will show the result
### Method 4: Context Menu (Bulk Processing)
1. Navigate to a FetLife gallery or list page
2. Right-click anywhere on the page
2. Right-click anywhere on the page, image, link, or video element
3. Select "Run on All Media" from the context menu
4. Notifications will show progress and completion status
......
......@@ -25,14 +25,14 @@ chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
id: 'privaxy',
title: 'Privaxy',
contexts: ['page', 'image', 'link'],
contexts: ['page', 'image', 'link', 'video'],
documentUrlPatterns: ['https://fetlife.com/*']
});
chrome.contextMenus.create({
id: 'run-on-all-media',
title: 'Run on All Media',
contexts: ['page', 'image', 'link'],
contexts: ['page', 'image', 'link', 'video'],
documentUrlPatterns: ['https://fetlife.com/*']
});
......@@ -40,14 +40,14 @@ chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
id: 'set-friends-only',
title: '👥 Set to Friends Only',
contexts: ['page', 'image', 'link'],
contexts: ['page', 'image', 'link', 'video'],
documentUrlPatterns: ['https://fetlife.com/*']
});
chrome.contextMenus.create({
id: 'set-all-fetlifers',
title: '🌐 Set to All Fetlifers',
contexts: ['page', 'image', 'link'],
contexts: ['page', 'image', 'link', 'video'],
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