Improved: FAQ and options page about generated rules

This commit is contained in:
nobody 2021-07-30 21:25:37 +02:00
parent 87f6627540
commit edad875768
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
4 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,9 @@
</div>
<div id="rule-generator" class="notice">
<h2 data-i18n-content="helpRuleGeneratorTitle">Rule generator</h2>
<p data-i18n-content="helpRuleGeneratorDescription">If you want to automatically redirect all supported CDN connections to LocalCDN, you can add these rules to your adblocker to allow these redirections. If you do not want to add these rules, you must allow each CDN connection individually for each website.</p>
<p>
<span data-i18n-content="helpRuleGeneratorDescription">If you want to automatically redirect all supported CDN connections to LocalCDN, you can add these rules to your adblocker to allow these redirections. If you do not want to add these rules, you must allow each CDN connection individually for each website.</span>
<span><a href="https://codeberg.org/nobody/LocalCDN/wiki" target="_blank" rel="nofollow noopener noreferrer">More information about the generated rules</a></span>
<h3 data-i18n-content="helpRuleGeneratorUblockTitle">Only uBlock Origin:</h3>
<p data-i18n-content="helpRuleGeneratorUblockDescription">These rules are only relevant in "medium" or "hard" mode, because it blocks all 3rd-party resources. They are not necessary in "default", "easy" or "very-easy" mode. For more information, please visit the uBlock Origin Wiki.</p>
<table class="table-ublock">

View File

@ -98,5 +98,4 @@ optionsAdvanced.init = function (opt) {
document.getElementById('generate-noscript-rules').addEventListener('change', ruleGenerator.openRuleSet);
document.getElementById('button-copy-rule-set').addEventListener('click', ruleGenerator.copyRuleSet);
document.getElementById('negate-html-filter-list-warning').addEventListener('click', function () { options._onLinkClick(Links.CODEBERG_HTML_FILTER); });
document.getElementById('ruleset-help').addEventListener('click', function () { options._onLinkClick(Links.CODEBERG_RULESET); });
};

View File

@ -198,7 +198,7 @@
<div class="option-group">
<section class="option">
<div class="title-option without-checkbox">
<a class="no-icon" href="../help/help.html">
<a class="no-icon" href="../help/help.html#rule-generator">
<span data-i18n-content="generateRuleSetTitle">Generate rule set</span>
<span id="ruleset-help" class="options-help-icon"></span>
</a>

View File

@ -38,6 +38,8 @@
<br>
<li>Fixed: Version detection of Vue.js</li>
<li>Fixed: Latest version of toastr.js (<a href="https://codeberg.org/nobody/LocalCDN/issues/590">#590</a>)</li>
<br>
<li>Improved: FAQ and options page about generated rules</li>
</ul>
<div id="generator-section">
<div class="topic-label">