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:
parent
1fcd0ce7eb
commit
8f2e7ae202
@ -137,16 +137,19 @@ const menuEntries = {
|
|||||||
id: 'uBlock0-blockElement',
|
id: 'uBlock0-blockElement',
|
||||||
title: i18n$('pickerContextMenuEntry'),
|
title: i18n$('pickerContextMenuEntry'),
|
||||||
contexts: [ 'all' ],
|
contexts: [ 'all' ],
|
||||||
|
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
|
||||||
},
|
},
|
||||||
blockElementInFrame: {
|
blockElementInFrame: {
|
||||||
id: 'uBlock0-blockElementInFrame',
|
id: 'uBlock0-blockElementInFrame',
|
||||||
title: i18n$('contextMenuBlockElementInFrame'),
|
title: i18n$('contextMenuBlockElementInFrame'),
|
||||||
contexts: [ 'frame' ],
|
contexts: [ 'frame' ],
|
||||||
|
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
|
||||||
},
|
},
|
||||||
blockResource: {
|
blockResource: {
|
||||||
id: 'uBlock0-blockResource',
|
id: 'uBlock0-blockResource',
|
||||||
title: i18n$('pickerContextMenuEntry'),
|
title: i18n$('pickerContextMenuEntry'),
|
||||||
contexts: [ 'audio', 'frame', 'image', 'video' ],
|
contexts: [ 'audio', 'frame', 'image', 'video' ],
|
||||||
|
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
|
||||||
},
|
},
|
||||||
subscribeToList: {
|
subscribeToList: {
|
||||||
id: 'uBlock0-subscribeToList',
|
id: 'uBlock0-subscribeToList',
|
||||||
@ -158,6 +161,7 @@ const menuEntries = {
|
|||||||
id: 'uBlock0-temporarilyAllowLargeMediaElements',
|
id: 'uBlock0-temporarilyAllowLargeMediaElements',
|
||||||
title: i18n$('contextMenuTemporarilyAllowLargeMediaElements'),
|
title: i18n$('contextMenuTemporarilyAllowLargeMediaElements'),
|
||||||
contexts: [ 'all' ],
|
contexts: [ 'all' ],
|
||||||
|
documentUrlPatterns: [ 'http://*/*', 'https://*/*' ],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user