1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 16:44:34 +01:00

Improved detection of Google Fonts

This commit is contained in:
nobody 2020-07-30 07:55:03 +02:00
parent a9da737114
commit cc16cefc36
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, 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) {
return {
'cancel': false

View File

@ -28,6 +28,7 @@
<li>Updated: Bootstrap JS & CSS to v4.5.0</li>
<li>Removed: Unused jQuery v3.4.1</li>
<li>Updated: Welcome page</li>
<li>Improved: Detection of Google Fonts</li>
</ul>
<div id="generator-section">
<div class="topic-label">