mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
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:
parent
a8f0461a57
commit
2fae1ce90e
2 changed files with 3 additions and 14 deletions
|
@ -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');
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue