From 2fae1ce90e49883deed4ae028388cdeaf2bc0d71 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 21 Nov 2021 07:53:36 -0500 Subject: [PATCH] Remove ability to unredact Unredacted settings is unlikely to be useful after all, and removing the ability to unredact ensure users won't mistakenly publish unredacted information. --- src/js/support.js | 12 +----------- src/support.html | 5 ++--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/js/support.js b/src/js/support.js index 928e52c6d..0edd877dc 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -131,7 +131,7 @@ function addDetailsToReportURL(id, collapse = false) { function showData() { const shownData = JSON.parse(JSON.stringify(supportData)); uselessKeys.forEach(prop => { removeKey(shownData, prop); }); - const redacted = document.body.classList.contains('redacted'); + const redacted = true; // If the report is for a specific site, report per-site switches which // are triggered on the reported site. if ( @@ -271,16 +271,6 @@ uBlockDashboard.patchCodeMirrorEditor(cmEditor); ev.preventDefault(); }); - uDom('#redactButton').on('click', ( ) => { - document.body.classList.add('redacted'); - showData(); - }); - - uDom('#unredactButton').on('click', ( ) => { - document.body.classList.remove('redacted'); - showData(); - }); - uDom('#selectAllButton').on('click', ( ) => { cmEditor.focus(); cmEditor.execCommand('selectAll'); diff --git a/src/support.html b/src/support.html index 1f9ba9f8d..d602cb204 100644 --- a/src/support.html +++ b/src/support.html @@ -14,7 +14,7 @@ - +
@@ -100,8 +100,7 @@

-

-

+