mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 10:52:43 +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:
parent
1fcd0ce7eb
commit
8f2e7ae202
@ -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://*/*' ],
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user