Hide incompatible options for Chromium based browsers

This commit is contained in:
nobody 2020-07-05 08:55:24 +02:00
parent f310d3ee0e
commit 6aed2a9cef
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 5 additions and 1 deletions

View File

@ -109,7 +109,7 @@
<div class="description-option without-checkbox" data-i18n-content="whitelistedDomainsDescription"></div> <div class="description-option without-checkbox" data-i18n-content="whitelistedDomainsDescription"></div>
</section> </section>
</div> </div>
<div class="option-group"> <div id="html-filter-div" class="option-group">
<section class="option"> <section class="option">
<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-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 to these domains:</div> <div id="html-filter-domains-title-include" class="title-option without-checkbox" data-i18n-content="htmlFilterDomainsTitleInclude">Apply HTML filter to these domains:</div>

View File

@ -42,6 +42,10 @@ options._renderContents = function () {
options._renderLocaleNotice(); options._renderLocaleNotice();
} }
if(BrowserType.CHROMIUM) {
document.getElementById('html-filter-div').hidden = true;
}
}; };
options._renderOptionsPanel = function () { options._renderOptionsPanel = function () {