From 96a42dfb3b20005b1dca75f59fb7272da62a61b2 Mon Sep 17 00:00:00 2001 From: Stache Date: Fri, 1 Jul 2022 17:52:53 +0200 Subject: [PATCH 1/6] Hetch --- declarations/Hetch.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 declarations/Hetch.json diff --git a/declarations/Hetch.json b/declarations/Hetch.json new file mode 100644 index 0000000..6b8b1b7 --- /dev/null +++ b/declarations/Hetch.json @@ -0,0 +1,20 @@ +{ + "name": "Bolt Driver", + "documents": { + "Terms of Service": { + "fetch": "https://bolt.eu/fr/legal/fr/terms-for-riders/", + "executeClientScripts": true, + "select": ".container" + }, + "Trackers Policy": { + "fetch": "https://bolt.eu/fr/cookie-declaration/", + "executeClientScripts": true, + "select": ".container" + }, + "Privacy Policy": { + "fetch": "https://bolt.eu/fr/legal/fr/privacy-for-riders/", + "executeClientScripts": true, + "select": ".container" + } + } +} \ No newline at end of file From b8adf9308103ab089f10791ca5de29b441d0bad1 Mon Sep 17 00:00:00 2001 From: Martin Ratinaud Date: Wed, 20 Jul 2022 09:41:14 +0400 Subject: [PATCH 2/6] Add missing line at end of file --- declarations/Hetch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarations/Hetch.json b/declarations/Hetch.json index 6b8b1b7..52ee5f2 100644 --- a/declarations/Hetch.json +++ b/declarations/Hetch.json @@ -17,4 +17,4 @@ "select": ".container" } } -} \ No newline at end of file +} From 9138fa4cca227e6172645e1ec0ac83da1f8c8d58 Mon Sep 17 00:00:00 2001 From: Martin Ratinaud Date: Wed, 20 Jul 2022 09:41:30 +0400 Subject: [PATCH 3/6] Remove unecessary executeClientScripts --- declarations/Hetch.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/declarations/Hetch.json b/declarations/Hetch.json index 52ee5f2..253988e 100644 --- a/declarations/Hetch.json +++ b/declarations/Hetch.json @@ -3,17 +3,14 @@ "documents": { "Terms of Service": { "fetch": "https://bolt.eu/fr/legal/fr/terms-for-riders/", - "executeClientScripts": true, "select": ".container" }, "Trackers Policy": { "fetch": "https://bolt.eu/fr/cookie-declaration/", - "executeClientScripts": true, "select": ".container" }, "Privacy Policy": { "fetch": "https://bolt.eu/fr/legal/fr/privacy-for-riders/", - "executeClientScripts": true, "select": ".container" } } From 47878f8e1ff86a841bbe84219dd3a62244df3eaf Mon Sep 17 00:00:00 2001 From: Martin Ratinaud Date: Wed, 20 Jul 2022 09:48:18 +0400 Subject: [PATCH 4/6] Fix selector too wide --- declarations/Hetch.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/declarations/Hetch.json b/declarations/Hetch.json index 253988e..217eba9 100644 --- a/declarations/Hetch.json +++ b/declarations/Hetch.json @@ -3,7 +3,7 @@ "documents": { "Terms of Service": { "fetch": "https://bolt.eu/fr/legal/fr/terms-for-riders/", - "select": ".container" + "select": ["#header", ".document .container"] }, "Trackers Policy": { "fetch": "https://bolt.eu/fr/cookie-declaration/", @@ -11,7 +11,7 @@ }, "Privacy Policy": { "fetch": "https://bolt.eu/fr/legal/fr/privacy-for-riders/", - "select": ".container" + "select": ["#header", ".document .container"] } } } From 2274016928f0cdcd23c0286f7e96dbbc75588cee Mon Sep 17 00:00:00 2001 From: Martin Ratinaud Date: Wed, 20 Jul 2022 09:48:48 +0400 Subject: [PATCH 5/6] Handle correctly custom page even though content is empty --- declarations/Hetch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarations/Hetch.json b/declarations/Hetch.json index 217eba9..d588190 100644 --- a/declarations/Hetch.json +++ b/declarations/Hetch.json @@ -7,7 +7,7 @@ }, "Trackers Policy": { "fetch": "https://bolt.eu/fr/cookie-declaration/", - "select": ".container" + "select": [".cookie-declaration"] }, "Privacy Policy": { "fetch": "https://bolt.eu/fr/legal/fr/privacy-for-riders/", From cd9fc6f5e7472a8fb64fcfb1f4151bcfc28a4841 Mon Sep 17 00:00:00 2001 From: Martin Ratinaud Date: Wed, 20 Jul 2022 09:51:08 +0400 Subject: [PATCH 6/6] Lint file --- declarations/Hetch.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/declarations/Hetch.json b/declarations/Hetch.json index d588190..dcf6197 100644 --- a/declarations/Hetch.json +++ b/declarations/Hetch.json @@ -3,15 +3,23 @@ "documents": { "Terms of Service": { "fetch": "https://bolt.eu/fr/legal/fr/terms-for-riders/", - "select": ["#header", ".document .container"] + "select": [ + "#header", + ".document .container" + ] }, "Trackers Policy": { "fetch": "https://bolt.eu/fr/cookie-declaration/", - "select": [".cookie-declaration"] + "select": [ + ".cookie-declaration" + ] }, "Privacy Policy": { "fetch": "https://bolt.eu/fr/legal/fr/privacy-for-riders/", - "select": ["#header", ".document .container"] + "select": [ + "#header", + ".document .container" + ] } } }