From e73d79071c15f1438680c54e3f9146e7cde3866d Mon Sep 17 00:00:00 2001 From: Joe Dowd Date: Wed, 18 Mar 2020 00:15:04 +0000 Subject: [PATCH 1/2] Added copy debug information to clipboard options element. --- public/_locales/en/messages.json | 12 ++++++++++ public/options/options.html | 14 +++++++++++ src/options.ts | 41 ++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 6dbec4bd..e26d1419 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -440,5 +440,17 @@ }, "incorrectlyFormattedOptions": { "message": "This JSON is not formatted correctly. Your options have not been changed." + }, + "copyDebugInformation": { + "message": "Copy Debug Information To Clipboard" + }, + "copyDebugInformationFailed": { + "message": "Failed to write to clipboard" + }, + "copyDebugInformationOptions": { + "message": "Copies information to the clipboard to be provided to a developer when raising a bug / when a developer requests it. Sensitive information such as your user ID, whitelisted channels, and custom server address have been removed. However it does contain information such as your useragent, browser, operating system, and extension version number. " + }, + "copyDebugInformationComplete": { + "message": "The debug information has been copied to the clip board. Feel free to remove any information you would rather not share. Save this in a text file or paste into the bug report." } } diff --git a/public/options/options.html b/public/options/options.html index 37139c31..0dc3e4d8 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -334,6 +334,20 @@

+
+
+ __MSG_copyDebugInformation__ +
+ +
+ +
__MSG_copyDebugInformationOptions__
+
+ +
+
+ +