1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

Prevent context menu entries on non-HTTP documents

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1093#issuecomment-1423342620
This commit is contained in:
Raymond Hill 2023-02-08 19:35:15 -05:00
parent 1fcd0ce7eb
commit 8f2e7ae202
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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',
@ -158,6 +161,7 @@ const menuEntries = {
id: 'uBlock0-temporarilyAllowLargeMediaElements',
title: i18n$('contextMenuTemporarilyAllowLargeMediaElements'),
contexts: [ 'all' ],
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
}
};