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.
This commit is contained in:
Raymond Hill 2021-11-21 07:53:36 -05:00
parent a8f0461a57
commit 2fae1ce90e
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 3 additions and 14 deletions

View file

@ -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');

View file

@ -14,7 +14,7 @@
<link rel="stylesheet" href="css/codemirror.css">
</head>
<body class="redacted">
<body>
<div class="body">
<div class="a">
@ -100,8 +100,7 @@
<div class="a b c d">
<h3 data-i18n="supportS5H"></h3>
<p data-i18n="supportS5P1">
<p data-i18n="supportS5P2">
<p><button id="redactButton" type="button" data-i18n="supportRedact"></button><button id="unredactButton" type="button" data-i18n="supportUnredact"></button><button id="selectAllButton" type="button" data-i18n="genericSelectAll"></button>
<p><button id="selectAllButton" type="button" data-i18n="genericSelectAll"></button>
<div id="supportData" class="codeMirrorContainer"></div>
</div>
</div>