From cc16cefc365fef408a5441c1ddd7fa72a5f2ff8d Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 30 Jul 2020 07:55:03 +0200 Subject: [PATCH] Improved detection of Google Fonts --- core/interceptor.js | 4 +++- pages/updates/updates.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/interceptor.js b/core/interceptor.js index 411c3953..803c6bc5 100644 --- a/core/interceptor.js +++ b/core/interceptor.js @@ -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 diff --git a/pages/updates/updates.html b/pages/updates/updates.html index c46a3316..854edf38 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -28,6 +28,7 @@
  • Updated: Bootstrap JS & CSS to v4.5.0
  • Removed: Unused jQuery v3.4.1
  • Updated: Welcome page
  • +
  • Improved: Detection of Google Fonts