LocalCDN-Firefox-Chrome-Brave/pages/options/options.html

222 lines
8.6 KiB
HTML
Raw Normal View History

2020-02-27 13:45:29 +01:00
<!DOCTYPE html>
<html>
<head>
<title>LocalCDN Options</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="options.css">
</head>
<body>
<script src="../../core/constants.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script defer src="../../core/resources.js"></script>
<script defer src="../../core/mappings.js"></script>
2020-02-27 13:45:29 +01:00
<script src="options.js"></script>
<section class="notice notice-warning hidden" id="notice-block-missing">
<div class="notice-head">
<span data-i18n-content="blockMissingTitle"></span>
</div>
<div class="notice-body" dir="ltr">
2020-04-07 12:19:32 +02:00
<div class="notice-message" data-i18n-content="featureBreaksWebsitesDescription">
2020-02-27 13:45:29 +01:00
This feature breaks websites. Do not leave it enabled, unless you are prepared to manually whitelist any affected domains.
</div>
2020-04-06 18:58:33 +02:00
2020-04-07 12:19:32 +02:00
<div class="button button-notice button-warning" id="button-block-missing" data-i18n-content="featureBreaksWebsitesButton">
2020-02-27 13:45:29 +01:00
Disable
</div>
</div>
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="showIconBadge" type="checkbox">
<span data-i18n-content="showIconBadgeTitle"></span>
</label>
</div>
<div class="description-option" data-i18n-content="showIconBadgeDescription"></div>
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="blockMissing" type="checkbox">
<span data-i18n-content="blockMissingTitle"></span>
</label>
<span class="badge badge-warning" data-i18n-content="advancedLabel"></span>
</div>
<div class="description-option" data-i18n-content="blockMissingDescription"></div>
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="disablePrefetch" type="checkbox">
<span data-i18n-content="disablePrefetchTitle"></span>
</label>
<span class="badge badge-warning" data-i18n-content="advancedLabel"></span>
</div>
<div class="description-option" data-i18n-content="disablePrefetchDescription"></div>
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="stripMetadata" type="checkbox">
<span data-i18n-content="stripMetadataTitle"></span>
</label>
<span class="badge badge-warning" data-i18n-content="advancedLabel"></span>
</div>
<div class="description-option" data-i18n-content="stripMetadataDescription"></div>
2020-03-29 10:23:16 +02:00
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="enableLogging" type="checkbox">
2020-04-07 12:19:32 +02:00
<span data-i18n-content="loggingTitle">Enable logging in browser console</span>
2020-03-29 10:23:16 +02:00
</label>
</div>
2020-04-07 12:19:32 +02:00
<div class="description-option" data-i18n-content="loggingDescription">Open "Browser Console" ( CTRL + SHIFT + J ) to show missing resources</div>
</section>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="hideReleaseNotes" type="checkbox">
2020-04-07 12:19:32 +02:00
<span data-i18n-content="hideReleaseNotesTitle">Disable release notes</span>
</label>
2020-04-07 12:19:32 +02:00
<span class="badge badge-warning" data-i18n-content="advancedLabel"></span>
</div>
2020-04-07 12:19:32 +02:00
<div class="description-option" data-i18n-content="hideReleaseNotesDescription">If enabled, you wont receive any information about new features in LocalCDN. This includes information about new uBlock/uMatrix rules.</div>
2020-02-27 13:45:29 +01:00
</section>
<section class="option">
2020-04-07 12:19:32 +02:00
<div class="title-option without-checkbox" data-i18n-content="whitelistedDomainsTitle"></div>
<input class="input-text without-checkbox" data-option="whitelistedDomains" type="text">
<div class="description-option without-checkbox" data-i18n-content="whitelistedDomainsDescription"></div>
</section>
2020-02-27 13:45:29 +01:00
<div class="html-filter-section">
<section class="option">
2020-06-26 19:48:47 +02:00
<div id="html-filter-domains-title-exclude" class="title-option without-checkbox" data-i18n-content="htmlFilterDomainsTitleExclude">Do not apply HTML-Filter to these domains:</div>
<div id="html-filter-domains-title-include" class="title-option without-checkbox" data-i18n-content="htmlFilterDomainsTitleInclude">Apply HTML-Filter for these domains:</div>
<input class="input-text without-checkbox" data-option="domainsManipulateDOM" type="text">
2020-06-27 11:49:45 +02:00
<div class="description-option without-checkbox" data-i18n-content="htmlFilterDomainsDescription">Enter the domains to be handled or ignored by the HTML-Filter. Separate multiple entries with semi-colons (;). Default: Apply HTML-Filters only for these domains.</div>
</section>
<span id="negate-html-filter-list-warning" class="badge badge-warning warning-red" data-i18n-content="negateHtmlFilterListWarning">This function can break websites. Please note the information on the Wiki page.</span>
<section class="option">
<div class="title-option">
<label class="label-checkbox">
<input class="input-checkbox" data-option="negateHtmlFilterList" type="checkbox">
<span data-i18n-content="negateHtmlFilterListTitle">Invert HTML-Filter</span>
</label>
<span class="badge badge-warning" data-i18n-content="advancedLabel"></span>
</div>
2020-06-27 11:49:45 +02:00
<div class="description-option" data-i18n-content="negateHtmlFilterListDescription">Enable this option to always apply the HTML filter. The domains in the list will be ignored then. If this option is disabled, the HTML filter is only applied to domains in the list.</div>
</section>
</div>
<section class="option">
2020-04-07 12:19:32 +02:00
<div class="title-option without-checkbox" data-i18n-content="generateRuleSetTitle"></div>
<div class="description-option without-checkbox">
<p class="without-checkbox" data-i18n-content="generateRuleSetDescription"></p>
</div>
<div class="ruleset-generator">
2020-06-16 07:10:22 +02:00
<p id="last-mapping-update" class="description-option last-update without-checkbox" data-i18n-content="lastUpdate">Last update:</p>
</div>
2020-03-05 07:45:41 +01:00
<div class="ruleset-generator">
<input id="generate-ublock-rules" name="rule-sets" data-option="uBlock" type="radio" value="uBlock">
<label for="generate-ublock-rules">uBlock</label>
</div>
2020-03-05 07:45:41 +01:00
<div class="ruleset-generator">
<input id="generate-umatrix-rules" name="rule-sets" data-option="uMatrix" type="radio" value="uMatrix">
<label for="generate-umatrix-rules">uMatrix</label>
</div>
<textarea rows="12" cols="15" id="generated-rules" readonly></textarea>
2020-04-07 12:19:32 +02:00
<input id="button-copy-rule-set" type="button" data-i18n-content="copyRuleSet" value="Copy">
2020-02-27 13:45:29 +01:00
</section>
<section class="notice notice-default hidden" id="notice-locale">
<div class="notice-body" dir="ltr">
<div class="notice-message">
2020-06-26 06:15:42 +02:00
Your preferred language is not yet fully supported. Please help out by translating this add-on on Weblate.
2020-02-27 13:45:29 +01:00
</div>
2020-04-06 18:58:33 +02:00
<a class="button button-notice button-warning" href="https://hosted.weblate.org/projects/localcdn/" target="_blank">
2020-06-26 06:15:42 +02:00
Translate
2020-02-27 13:45:29 +01:00
</a>
</div>
</section>
</body>
</html>