mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-16 20:00:57 +01:00
Updated: audit.sh (#1194)
This commit is contained in:
parent
ed1f21af44
commit
96df6b7d5d
@ -53,26 +53,40 @@
|
|||||||
# All files in the directory /resources/
|
# All files in the directory /resources/
|
||||||
#
|
#
|
||||||
# Exceptions:
|
# Exceptions:
|
||||||
# /resources/*/note
|
# 1) /resources/google-material-design-icons/google-material-design-icons.css
|
||||||
# /resources/google-material-design-icons/google-material-design-icons.css
|
# 2) /resources/google-fonts-placeholder.css
|
||||||
# /resources/blocked/*
|
# 3) /resources/*/note
|
||||||
|
# 4) /resources/blocked/*
|
||||||
|
# 5) /resources/mathjax/2.7.5/latest.jsm
|
||||||
#
|
#
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# WHY ARE THESE FILES EXCLUDED?
|
# 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
|
# 1) /resources/google-material-design-icons/google-material-design-icons.css
|
||||||
# external one.
|
# 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
|
# 2) /resources/google-fonts-placeholder.css
|
||||||
# Google Fonts redirects. Only used
|
# This is a placeholder which is used for Google Fonts redirects. Only
|
||||||
# when "Block Google Fonts" is enabled.
|
# used when "Block Google Fonts" is enabled.
|
||||||
#
|
#
|
||||||
# /resources/*/note These files contain notes if a file has
|
# 3) /resources/*/note
|
||||||
# been renamed.
|
# These files contain notes if a file has been renamed.
|
||||||
#
|
#
|
||||||
# /resources/blocked/* This folder contains files which will be
|
# 4) /resources/blocked/*
|
||||||
# displayed if the direct CDN call is blocked.
|
# This folder contains files which will be displayed if the direct CDN
|
||||||
# (https://codeberg.org/nobody/LocalCDN/issues/1050)
|
# 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-material-design-icons.css" \
|
||||||
! -iname "google-fonts-placeholder.css" \
|
! -iname "google-fonts-placeholder.css" \
|
||||||
-not -path "../resources/blocked/*" \
|
-not -path "../resources/blocked/*" \
|
||||||
|
-not -path "../resources/mathjax/*/latest.jsm" \
|
||||||
-print0)
|
-print0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user