From 69e87bcbe9001d00318c80731f5f6f5a8712395e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 4 Feb 2025 11:56:32 +0200 Subject: [PATCH] {chromium,firefox,pre-commit}: consider domain as json top level key --- .pre-commit-config.yaml | 2 +- etc/firefox/policies/policies.json | 8 ++++---- etc/opt/chromium/policies/managed/aminda-extensions.json | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fae47ec9..4fb0cf34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: "\t", --no-ensure-ascii, --top-keys, - "Name,name", + "Name,name,domain", ] - id: check-illegal-windows-names diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index c5f13006..464216f1 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -23,12 +23,12 @@ "socialWidgetReplacementEnabled": true, "trackingDomains": [ { - "action": "block", - "domain": "youtube.com" + "domain": "youtube.com", + "action": "block" }, { - "action": "block", - "domain": "youtube-nocookie.com" + "domain": "youtube-nocookie.com", + "action": "block" } ] }, diff --git a/etc/opt/chromium/policies/managed/aminda-extensions.json b/etc/opt/chromium/policies/managed/aminda-extensions.json index 635383bb..90024117 100644 --- a/etc/opt/chromium/policies/managed/aminda-extensions.json +++ b/etc/opt/chromium/policies/managed/aminda-extensions.json @@ -100,12 +100,12 @@ "socialWidgetReplacementEnabled": true, "trackingDomains": [ { - "action": "block", - "domain": "youtube.com" + "domain": "youtube.com", + "action": "block" }, { - "action": "block", - "domain": "youtube-nocookie.com" + "domain": "youtube-nocookie.com", + "action": "block" } ] }