mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Improved detection of Google Fonts
This commit is contained in:
@@ -34,7 +34,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
|||||||
|
|
||||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
||||||
|
|
||||||
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css?family')) {
|
// Possible URLs of Google Fonts: https://fonts.googleapis.com/css
|
||||||
|
// https://fonts.googleapis.com/css2
|
||||||
|
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) {
|
||||||
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
|
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
|
||||||
return {
|
return {
|
||||||
'cancel': false
|
'cancel': false
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
<li>Updated: Bootstrap JS & CSS to v4.5.0</li>
|
<li>Updated: Bootstrap JS & CSS to v4.5.0</li>
|
||||||
<li>Removed: Unused jQuery v3.4.1</li>
|
<li>Removed: Unused jQuery v3.4.1</li>
|
||||||
<li>Updated: Welcome page</li>
|
<li>Updated: Welcome page</li>
|
||||||
|
<li>Improved: Detection of Google Fonts</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="generator-section">
|
<div id="generator-section">
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
|
Reference in New Issue
Block a user