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">
|
|
|
|
|
|
|
|
<script defer src="../../modules/internal/icons.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script src="../../core/constants.js"></script>
|
|
|
|
<script src="../../modules/internal/helpers.js"></script>
|
2020-03-04 17:55:37 +01:00
|
|
|
<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">
|
|
|
|
|
|
|
|
<i class="fai fa-exclamation-triangle icon"></i>
|
|
|
|
<span data-i18n-content="blockMissingTitle"></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="notice-body" dir="ltr">
|
|
|
|
|
|
|
|
<div class="notice-message">
|
|
|
|
This feature breaks websites. Do not leave it enabled, unless you are prepared to manually whitelist any affected domains.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="button button-notice button-warning" id="button-block-missing">
|
|
|
|
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">
|
|
|
|
<span data-i18n-content="loggingTitle"></span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="description-option" data-i18n-content="loggingDescription"></div>
|
2020-04-06 18:04:53 +02:00
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="option">
|
|
|
|
|
|
|
|
<div class="title-option">
|
|
|
|
|
|
|
|
<label class="label-checkbox">
|
|
|
|
|
|
|
|
<input class="input-checkbox" data-option="hideReleaseNotes" type="checkbox">
|
|
|
|
<span data-i18n-content="hideReleaseNotesTitle"></span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="description-option" data-i18n-content="hideReleaseNotesDescription"></div>
|
2020-02-27 13:45:29 +01:00
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="option">
|
|
|
|
|
|
|
|
<div class="title-option" data-i18n-content="whitelistedDomainsTitle"></div>
|
|
|
|
<input class="input-text" data-option="whitelistedDomains" type="text">
|
|
|
|
<div class="description-option" data-i18n-content="whitelistedDomainsDescription"></div>
|
2020-03-04 17:55:37 +01:00
|
|
|
</section>
|
2020-02-27 13:45:29 +01:00
|
|
|
|
2020-03-04 17:55:37 +01:00
|
|
|
<section class="option">
|
|
|
|
<div class="title-option" data-i18n-content="generateRuleSetTitle"></div>
|
2020-03-08 12:30:03 +01:00
|
|
|
<div class="description-option">
|
|
|
|
<p>In case you're using uBlock or uMatrix you can generate the rules here. You have to add these rules manually in uBlock or uMatrix.</p>
|
|
|
|
<p class="last-update">Last update: <span id="last-mapping-update"></span></p>
|
|
|
|
</div>
|
2020-03-05 07:45:41 +01:00
|
|
|
<div class="ruleset-generator">
|
2020-03-04 17:55:37 +01:00
|
|
|
<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">
|
2020-03-04 17:55:37 +01:00
|
|
|
<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>
|
|
|
|
<input id="button-copy-rule-set" type="button" 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">
|
|
|
|
|
|
|
|
<i class="fai fa-exclamation-triangle icon"></i>
|
|
|
|
Your preferred language is not yet fully supported.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a class="button button-notice" href="https://crowdin.com/project/decentraleyes" target="_blank">
|
|
|
|
Help Translate
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|