Skip to content

Commit

Permalink
Prevent context menu entries on non-HTTP documents
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 9, 2023
1 parent 1fcd0ce commit 8f2e7ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/contextmenu.js
Expand Up @@ -137,16 +137,19 @@ const menuEntries = {
id: 'uBlock0-blockElement',
title: i18n$('pickerContextMenuEntry'),
contexts: [ 'all' ],
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
},
blockElementInFrame: {
id: 'uBlock0-blockElementInFrame',
title: i18n$('contextMenuBlockElementInFrame'),
contexts: [ 'frame' ],
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
},
blockResource: {
id: 'uBlock0-blockResource',
title: i18n$('pickerContextMenuEntry'),
contexts: [ 'audio', 'frame', 'image', 'video' ],
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
},
subscribeToList: {
id: 'uBlock0-subscribeToList',
Expand All @@ -158,6 +161,7 @@ const menuEntries = {
id: 'uBlock0-temporarilyAllowLargeMediaElements',
title: i18n$('contextMenuTemporarilyAllowLargeMediaElements'),
contexts: [ 'all' ],
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
}
};

Expand Down

0 comments on commit 8f2e7ae

Please sign in to comment.