mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-17 04:10:53 +01:00
Removed support for "Google Material Icons" in Chromium
This commit is contained in:
parent
de6522534d
commit
3bfa7e7463
@ -30,7 +30,7 @@ var requestAnalyzer = {};
|
||||
|
||||
requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
||||
|
||||
let initiatorDomain, isWhitelisted, fontawesome;
|
||||
let initiatorDomain, isWhitelisted;
|
||||
|
||||
initiatorDomain = helpers.extractDomainFromUrl(tabDetails.url, true);
|
||||
|
||||
@ -45,10 +45,15 @@ requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
||||
}
|
||||
|
||||
// Font Awesome injections in Chromium deactivated (https://gitlab.com/nobody42/localcdn/-/issues/67)
|
||||
fontawesome = new RegExp('\(font-awesome|fontawesome)');
|
||||
if(BrowserType.CHROMIUM && fontawesome.test(requestDetails.url)) {
|
||||
console.warn('[ LocalCDN ] Font Awesome is not fully supported by your browser.');
|
||||
return false;
|
||||
if (BrowserType.CHROMIUM){
|
||||
if (/(font-awesome|fontawesome)/.test(requestDetails.url)) {
|
||||
console.warn('[ LocalCDN ] Font Awesome is not fully supported by your browser.');
|
||||
return false;
|
||||
} else if (requestDetails.url === 'https://fonts.googleapis.com/icon?family=Material+Icons') {
|
||||
// also valid for Google Material icons
|
||||
console.warn('[ LocalCDN ] Google Material Icons are not fully supported by your browser.');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Only requests of type GET can be valid candidates.
|
||||
|
@ -33,6 +33,7 @@
|
||||
<li>Added: Jets.js v0.14.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/56">#56</a>)</li>
|
||||
<li>Added: Vanilla-Lazyload v17.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/56">#56</a>)</li>
|
||||
<li>Fixed: Blocking handling of "Google Fonts" improved</li>
|
||||
<li>Removed: Support for "Google Material Icons" in Chromium (known Chromium bug, same with "Font Awesome")</li>
|
||||
</ul>
|
||||
<div class="topic-label">
|
||||
Generate rule sets for uBlock or uMatrix
|
||||
|
Loading…
x
Reference in New Issue
Block a user