From 6ca1462fe2d21f27ccc3392b5afd842beb9c9817 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Sat, 4 Oct 2025 15:09:05 -0700 Subject: [PATCH] Feat: Add original dash.js from extension --- dash.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dash.js b/dash.js index 129be03..59da4dd 100644 --- a/dash.js +++ b/dash.js @@ -53,8 +53,9 @@ function ACT(event) { textarea.value = DESCRY[op]['PLAIN'](textarea.value, encoderDropdown.value.split('-')[1]); if (op === 'NO') { - navigator.clipboard.writeText(textarea.value); - textarea.value = 'Copied to your clipboard.'; + textarea.select(); + document.execCommand('copy'); + textarea.value = 'Copied to your clipboard.\n A copy has been placed between these brackets [' + textarea.value + ']'; } }