From 422f5cbe15c1d808c3b13be5d625d4f1679b6443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Tue, 2 Jun 2020 18:15:53 +0800 Subject: [PATCH 1/2] Add jsDelivr Detection --- src/apps.json | 9 +++++++++ src/icons/jsdelivr-icon.svg | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/icons/jsdelivr-icon.svg diff --git a/src/apps.json b/src/apps.json index 666f8b3f1..c1e88e116 100644 --- a/src/apps.json +++ b/src/apps.json @@ -13061,6 +13061,15 @@ "script": "jqplot.*\\.js", "website": "http://www.jqplot.com" }, + "jsDelivr": { + "cats": [ + 31 + ], + "html": "]+//cdn\\.jsdelivr\\.net/", + "script": "//cdn\\.jsdelivr\\.net/", + "icon": "jsdelivr-icon.svg", + "website": "https://www.jsdelivr.com/" + }, "Kinsta": { "cats": [ 62 diff --git a/src/icons/jsdelivr-icon.svg b/src/icons/jsdelivr-icon.svg new file mode 100644 index 000000000..b44681bf3 --- /dev/null +++ b/src/icons/jsdelivr-icon.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d76fe9ec84847c0332a7be3942914ea00d6f5d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Tue, 2 Jun 2020 18:46:00 +0800 Subject: [PATCH 2/2] Improve jsDelivr Detection --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index c1e88e116..0645ff9de 100644 --- a/src/apps.json +++ b/src/apps.json @@ -13065,7 +13065,7 @@ "cats": [ 31 ], - "html": "]+//cdn\\.jsdelivr\\.net/", + "html": "<[^>]+?//cdn\\.jsdelivr\\.net/", "script": "//cdn\\.jsdelivr\\.net/", "icon": "jsdelivr-icon.svg", "website": "https://www.jsdelivr.com/"