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 ...@@ -49,13 +49,13 @@ A Chrome browser extension that automates privacy settings on FetLife.com. When
### Method 3: Context Menu (Single Page) ### Method 3: Context Menu (Single Page)
1. Navigate to a FetLife picture or video 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 3. Select "Privaxy" from the context menu
4. A notification will show the result 4. A notification will show the result
### Method 4: Context Menu (Bulk Processing) ### Method 4: Context Menu (Bulk Processing)
1. Navigate to a FetLife gallery or list page 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 3. Select "Run on All Media" from the context menu
4. Notifications will show progress and completion status 4. Notifications will show progress and completion status
......
...@@ -25,14 +25,14 @@ chrome.runtime.onInstalled.addListener(() => { ...@@ -25,14 +25,14 @@ chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({ chrome.contextMenus.create({
id: 'privaxy', id: 'privaxy',
title: 'Privaxy', title: 'Privaxy',
contexts: ['page', 'image', 'link'], contexts: ['page', 'image', 'link', 'video'],
documentUrlPatterns: ['https://fetlife.com/*'] documentUrlPatterns: ['https://fetlife.com/*']
}); });
chrome.contextMenus.create({ chrome.contextMenus.create({
id: 'run-on-all-media', id: 'run-on-all-media',
title: 'Run on All Media', title: 'Run on All Media',
contexts: ['page', 'image', 'link'], contexts: ['page', 'image', 'link', 'video'],
documentUrlPatterns: ['https://fetlife.com/*'] documentUrlPatterns: ['https://fetlife.com/*']
}); });
...@@ -40,14 +40,14 @@ chrome.runtime.onInstalled.addListener(() => { ...@@ -40,14 +40,14 @@ chrome.runtime.onInstalled.addListener(() => {
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: ['page', 'image', 'link'], contexts: ['page', 'image', 'link', 'video'],
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: ['page', 'image', 'link'], contexts: ['page', 'image', 'link', 'video'],
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