mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Postprocess selections only from from logger entries
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3097
This commit is contained in:
parent
6cfba082f9
commit
59d46ecd78
@ -3045,11 +3045,11 @@ dom.on('#logLevel', 'click', ev => {
|
||||
broadcast({ what: 'loggerLevelChanged', level });
|
||||
});
|
||||
|
||||
dom.on('#netInspector', 'copy', ev => {
|
||||
dom.on('#netInspector #vwContent', 'copy', ev => {
|
||||
const selection = document.getSelection();
|
||||
ev.clipboardData.setData('text/plain',
|
||||
selection.toString().replace(/\x1F|\u200B/g, '\t')
|
||||
);
|
||||
const text = selection.toString();
|
||||
if ( /\x1F|\u200B/.test(text) === false ) { return; }
|
||||
ev.clipboardData.setData('text/plain', text.replace(/\x1F|\u200B/g, '\t'));
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user