From 02e6b1c0907d47edd1472237631a905199b629e8 Mon Sep 17 00:00:00 2001 From: joncrangle <94425204+joncrangle@users.noreply.github.com> Date: Sat, 11 Nov 2023 20:01:29 -0500 Subject: [PATCH 01/12] Add ft.com --- ruleset.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ruleset.yaml b/ruleset.yaml index d1c1e9f..133dcdc 100644 --- a/ruleset.yaml +++ b/ruleset.yaml @@ -162,4 +162,25 @@ x-forwarded-for: none user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 content-security-policy: script-src 'self'; - cookie: \ No newline at end of file + cookie: +- domain: www.ft.com + headers: + referer: https://t.co/x?amp=1 + injections: + - position: head + append: | + \ No newline at end of file From bdd19dcbb64a26ea7b6db7b1a3326b885db21214 Mon Sep 17 00:00:00 2001 From: joncrangle <94425204+joncrangle@users.noreply.github.com> Date: Sat, 11 Nov 2023 20:02:00 -0500 Subject: [PATCH 02/12] Remove console log --- ruleset.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/ruleset.yaml b/ruleset.yaml index 133dcdc..b5997d8 100644 --- a/ruleset.yaml +++ b/ruleset.yaml @@ -175,7 +175,6 @@ styleTags.forEach(el => { const href = el.getAttribute('href').substring(1); const updatedHref = href.replace(/(https?:\/\/.+?)\/{2,}/, '$1/'); - console.log(updatedHref); el.setAttribute('href', updatedHref); }); setTimeout(() => { From 190de6d9c552accd5dc333981d503a801dcd79a4 Mon Sep 17 00:00:00 2001 From: joncrangle <94425204+joncrangle@users.noreply.github.com> Date: Sat, 11 Nov 2023 20:19:07 -0500 Subject: [PATCH 03/12] Remove article signup iframe --- ruleset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruleset.yaml b/ruleset.yaml index b5997d8..2953736 100644 --- a/ruleset.yaml +++ b/ruleset.yaml @@ -178,7 +178,7 @@ el.setAttribute('href', updatedHref); }); setTimeout(() => { - const cookie = document.querySelectorAll('.o-cookie-message, .js-article-ribbon, .o-ads, .o-banner, .o-message'); + const cookie = document.querySelectorAll('.o-cookie-message, .js-article-ribbon, .o-ads, .o-banner, .o-message, .article__content-sign-up'); cookie.forEach(el => { el.remove(); }); }, 1000); }) From a4abce78fb2e02cb964c9192625542ad6430fc42 Mon Sep 17 00:00:00 2001 From: joncrangle <94425204+joncrangle@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:21:46 -0500 Subject: [PATCH 04/12] Add button to clear search --- handlers/form.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/handlers/form.html b/handlers/form.html index 954e051..2e78ecd 100644 --- a/handlers/form.html +++ b/handlers/form.html @@ -16,9 +16,12 @@

ladddddddder

-
+
+