From 22006b336df84e7ce4cfc35fc833e7595d7d1326 Mon Sep 17 00:00:00 2001 From: sostanza Date: Fri, 28 Jul 2017 09:19:12 +0200 Subject: [PATCH 1/4] Added LiveHelp Added LiveHelp Icon and JSON --- src/apps.json | 8 ++++++++ src/icons/LiveHelp.png | Bin 0 -> 892 bytes 2 files changed, 8 insertions(+) create mode 100644 src/icons/LiveHelp.png diff --git a/src/apps.json b/src/apps.json index dcb589660..c5c678d20 100755 --- a/src/apps.json +++ b/src/apps.json @@ -9854,6 +9854,14 @@ "icon": "lighttpd.png", "website": "http://www.lighttpd.net" }, + "LiveHelp": { + "cats": [ + "52", "53" + ], + "script": "http[s]{0,1}:\/\/server\.livehelp\.it\/widgetjs\/[0-9]{5}\/[0-9]{1,3}\.js?.*", + "icon": "LiveHelp.png", + "website": "http://www.livehelp.it" + }, "math.js": { "cats": [ "12" diff --git a/src/icons/LiveHelp.png b/src/icons/LiveHelp.png new file mode 100644 index 0000000000000000000000000000000000000000..07e888a7a572167b4b78deb5a1ae2c8b0369025c GIT binary patch literal 892 zcmV-?1B3jDP)HS%#Vv<(gY z+^%od*{0pjw!6@#2Ve3!?ab`_e)Hzd+g~|JlAxQ$Lzk`V1O)QIaoo8VihLXOU^9ju zo46NG>wS(RIdB#N2oLsw_67OkrUj^;~+;N zutuJ*B*+=PE{bo5I$VdI2`XR@J#Tr}SDXpMD=J~vX+A*(zE^wRxk3?gpb8Rik{hwY zLFQCw=s(Tx!@-}=@^^=A0Q!3$L8+{ot1iXV8Ztfp%h~WiUymKUqX<;w>&BJ-%xM-r zZoilN?p*i56C^;uS!-33ke>ONdaxvVI-CNKR3b3T8qJ9#nAK6{lYKq6;MH`b`gz-_4~aCp2cgW1gW*KqIXD{MdrQrUyLzMaGx9Hw@)2n6Ix z_+s@3Qx;XqC2&a};F9x8C&C|`e;S=@T8MbT49EFND3q?Y8$9N{oe9)dLQMf-b$Q@- zdIqz;Z8eE#gony&S;>Jgx}PZ+I36s{e%MdVz(xBG^tvLz^ZBy?%bEbgzR;itFbCw< zWV1J(Bvqi0O=Di9p$BuqZI9y((XG6KB;gP|t*MA;Em&@~l2|H2F?WJ(0j%aDa9DnV z2_s_1mKY($AQn*XoT&%&l2C3)xs;a)Nn#l)6;VzuBs4d8d3BOXw_2M)5-Tk=A(9|9 zVUdbWL)VJz^qqfL-u|04ua6eEsb)u^sfduslp-2hXgrd@O9-6QnncM|WjhiG>mjhN zVo%<&bG6{jKn?vdVQ7Ly6*wsxK_$HHG<6ax;6rrBaT4NA0M`-tum7C>6<`1$FGGR{ SN7xPk0000 Date: Fri, 28 Jul 2017 09:29:24 +0200 Subject: [PATCH 2/4] JSON fix Added double escape and formatted "cats" array --- src/apps.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps.json b/src/apps.json index c5c678d20..fbe135677 100755 --- a/src/apps.json +++ b/src/apps.json @@ -9856,9 +9856,10 @@ }, "LiveHelp": { "cats": [ - "52", "53" + "52", + "53" ], - "script": "http[s]{0,1}:\/\/server\.livehelp\.it\/widgetjs\/[0-9]{5}\/[0-9]{1,3}\.js?.*", + "script": "http[s]{0,1}:\\/\\/server\\.livehelp\\.it\\/widgetjs\\/[0-9]{5}\\/[0-9]{1,3}\\.js?.*", "icon": "LiveHelp.png", "website": "http://www.livehelp.it" }, From fe83e0ab5536e5aad2564e9e89035cdedfe14d85 Mon Sep 17 00:00:00 2001 From: sostanza Date: Mon, 31 Jul 2017 10:10:13 +0200 Subject: [PATCH 3/4] Regex improve as suggested by jvoisin --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index fbe135677..744988539 100755 --- a/src/apps.json +++ b/src/apps.json @@ -9859,7 +9859,7 @@ "52", "53" ], - "script": "http[s]{0,1}:\\/\\/server\\.livehelp\\.it\\/widgetjs\\/[0-9]{5}\\/[0-9]{1,3}\\.js?.*", + "script": "script": "^https?://server\\.livehelp\\.it/widgetjs/[0-9]{5}/[0-9]{1,3}\\.js", "icon": "LiveHelp.png", "website": "http://www.livehelp.it" }, From 71106a143cda686e58a902c121945cf98e34e839 Mon Sep 17 00:00:00 2001 From: sostanza Date: Mon, 31 Jul 2017 10:15:03 +0200 Subject: [PATCH 4/4] Wrong paste fixed --- src/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 744988539..7ef7d170a 100755 --- a/src/apps.json +++ b/src/apps.json @@ -9859,7 +9859,7 @@ "52", "53" ], - "script": "script": "^https?://server\\.livehelp\\.it/widgetjs/[0-9]{5}/[0-9]{1,3}\\.js", + "script": "^https?://server\\.livehelp\\.it/widgetjs/[0-9]{5}/[0-9]{1,3}\\.js", "icon": "LiveHelp.png", "website": "http://www.livehelp.it" },