mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Removed support for "Google Material Icons" in Chromium
This commit is contained in:
@@ -30,7 +30,7 @@ var requestAnalyzer = {};
|
|||||||
|
|
||||||
requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
|
||||||
|
|
||||||
let initiatorDomain, isWhitelisted, fontawesome;
|
let initiatorDomain, isWhitelisted;
|
||||||
|
|
||||||
initiatorDomain = helpers.extractDomainFromUrl(tabDetails.url, true);
|
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)
|
// Font Awesome injections in Chromium deactivated (https://gitlab.com/nobody42/localcdn/-/issues/67)
|
||||||
fontawesome = new RegExp('\(font-awesome|fontawesome)');
|
if (BrowserType.CHROMIUM){
|
||||||
if(BrowserType.CHROMIUM && fontawesome.test(requestDetails.url)) {
|
if (/(font-awesome|fontawesome)/.test(requestDetails.url)) {
|
||||||
console.warn('[ LocalCDN ] Font Awesome is not fully supported by your browser.');
|
console.warn('[ LocalCDN ] Font Awesome is not fully supported by your browser.');
|
||||||
return false;
|
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.
|
// 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: 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>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>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>
|
</ul>
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
Generate rule sets for uBlock or uMatrix
|
Generate rule sets for uBlock or uMatrix
|
||||||
|
Reference in New Issue
Block a user