From 347dfeed4bcd6ec4b606f6cf5ec96c4cecfda702 Mon Sep 17 00:00:00 2001 From: Hassan Ila <15068696+hassanila@users.noreply.github.com> Date: Sat, 23 Mar 2024 13:04:21 +0100 Subject: [PATCH 1/3] Added support for linasmatkasse.se --- src/data/js/5_clickHandler.js | 5 +++++ src/data/rules.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/data/js/5_clickHandler.js b/src/data/js/5_clickHandler.js index f68580b6..fac4d79e 100644 --- a/src/data/js/5_clickHandler.js +++ b/src/data/js/5_clickHandler.js @@ -8391,6 +8391,11 @@ function getSelector(host) { return '.cdk-overlay-container yg-tcf-dialog [data-cy="disagree-button"]'; case "fiveguys.nl": return '.modal[style*="block"] #button_accept_cookies'; + case "linasmatkasse.se": + return _if( + 'div#cookies button#accept-selected-cookies-btn', + 'div#cookies button#accept-selected-cookies-btn' + ); } if (host.parts.length > 2) { diff --git a/src/data/rules.js b/src/data/rules.js index 777bfc1a..944f2bed 100644 --- a/src/data/rules.js +++ b/src/data/rules.js @@ -18495,6 +18495,7 @@ const rules = { "krant.bndestem.nl": { j: 3 }, "ezeitung.weser-kurier.de": { j: 3 }, "blaetterkatalog.welt.de": { j: 3 }, + "linasmatkasse.se": { j: 5 }, }; const blockUrls = { From dccca1c9e1254226a58ef8504f5f3881c96d9506 Mon Sep 17 00:00:00 2001 From: Hassan Ila <15068696+hassanila@users.noreply.github.com> Date: Sat, 23 Mar 2024 13:22:33 +0100 Subject: [PATCH 2/3] remove unnecessary _if(...) --- src/data/js/5_clickHandler.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/data/js/5_clickHandler.js b/src/data/js/5_clickHandler.js index fac4d79e..3475fe0d 100644 --- a/src/data/js/5_clickHandler.js +++ b/src/data/js/5_clickHandler.js @@ -8392,10 +8392,7 @@ function getSelector(host) { case "fiveguys.nl": return '.modal[style*="block"] #button_accept_cookies'; case "linasmatkasse.se": - return _if( - 'div#cookies button#accept-selected-cookies-btn', - 'div#cookies button#accept-selected-cookies-btn' - ); + return 'div#cookies button#accept-selected-cookies-btn'; } if (host.parts.length > 2) { From f03e6bd7c0983687078c8ac3b96f44d478b978b8 Mon Sep 17 00:00:00 2001 From: obfuscated-loop <107592590+obfuscated-loop@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:03:01 +0100 Subject: [PATCH 3/3] Prettier fix --- src/data/js/5_clickHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/js/5_clickHandler.js b/src/data/js/5_clickHandler.js index 3475fe0d..21dcd622 100644 --- a/src/data/js/5_clickHandler.js +++ b/src/data/js/5_clickHandler.js @@ -8392,7 +8392,7 @@ function getSelector(host) { case "fiveguys.nl": return '.modal[style*="block"] #button_accept_cookies'; case "linasmatkasse.se": - return 'div#cookies button#accept-selected-cookies-btn'; + return "div#cookies button#accept-selected-cookies-btn"; } if (host.parts.length > 2) {