diff --git a/audit/audit.sh b/audit/audit.sh index 063bdfd2..b6aa54e8 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -53,26 +53,40 @@ # All files in the directory /resources/ # # Exceptions: -# /resources/*/note -# /resources/google-material-design-icons/google-material-design-icons.css -# /resources/blocked/* +# 1) /resources/google-material-design-icons/google-material-design-icons.css +# 2) /resources/google-fonts-placeholder.css +# 3) /resources/*/note +# 4) /resources/blocked/* +# 5) /resources/mathjax/2.7.5/latest.jsm # # ============================================================================= # WHY ARE THESE FILES EXCLUDED? -# google-material-design-icons.css This is a separate file so that the WOFF2 -# file in this extension is used and not an -# external one. + +# 1) /resources/google-material-design-icons/google-material-design-icons.css +# This is a separate file so that the WOFF2 file in this extension is +# used and not an external one. # -# google-fonts-placeholder.css This is a placeholder which is used for -# Google Fonts redirects. Only used -# when "Block Google Fonts" is enabled. +# 2) /resources/google-fonts-placeholder.css +# This is a placeholder which is used for Google Fonts redirects. Only +# used when "Block Google Fonts" is enabled. # -# /resources/*/note These files contain notes if a file has -# been renamed. +# 3) /resources/*/note +# These files contain notes if a file has been renamed. # -# /resources/blocked/* This folder contains files which will be -# displayed if the direct CDN call is blocked. -# (https://codeberg.org/nobody/LocalCDN/issues/1050) +# 4) /resources/blocked/* +# This folder contains files which will be displayed if the direct CDN +# call is blocked. (https://codeberg.org/nobody/LocalCDN/issues/1050) +# +# 5) /resources/mathjax/2.7.5/latest.jsm +# This file would request the latest version number of Mathjax from a +# CDN API (e.g. https://api.cdnjs.com/libraries/mathjax?fields=version) +# Based on this version number, all further resources will be reloaded +# from this CDN. The reloading of resources would be intercepted or +# prevented by LocalCDN anyway. To prevent requests to the CDN API when +# this file will be requested by a website, it has been modified. This +# audit script would overwrite my changes or declare them as errors, +# so this file is excluded. +# (https://codeberg.org/nobody/LocalCDN/issues/1194) # ============================================================================= @@ -769,6 +783,7 @@ done < <(find ../resources/ \ ! -iname "google-material-design-icons.css" \ ! -iname "google-fonts-placeholder.css" \ -not -path "../resources/blocked/*" \ + -not -path "../resources/mathjax/*/latest.jsm" \ -print0)