()
| 2755 | }; |
| 2756 | |
| 2757 | const dataSec = function () { |
| 2758 | muob("form.w-full #prompt-textarea", $(`body`), () => { |
| 2759 | if (gv("k_datasecblocklist", datasec_blocklist_default)) { |
| 2760 | $("form.w-full #prompt-textarea")?.addEventListener( |
| 2761 | "input", |
| 2762 | dataSec.listen_input, |
| 2763 | ); |
| 2764 | $("form.w-full #prompt-textarea")?.addEventListener( |
| 2765 | "paste", |
| 2766 | dataSec.listen_input, |
| 2767 | ); |
| 2768 | } else { |
| 2769 | $("form.w-full #prompt-textarea")?.removeEventListener( |
| 2770 | "input", |
| 2771 | dataSec.listen_input, |
| 2772 | ); |
| 2773 | $("form.w-full #prompt-textarea")?.removeEventListener( |
| 2774 | "paste", |
| 2775 | dataSec.listen_input, |
| 2776 | ); |
| 2777 | } |
| 2778 | }); |
| 2779 | }; |
| 2780 | |
| 2781 | dataSec.listen_input = function (event) { |
| 2782 | const scanPrompt = function () { |
no test coverage detected