Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split rule-syntax-check into generate-rule-schema and validate-rules #615

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ package-lock.json
addon/manifest.*.json
**/*.md
**/*.har
rules/schema.json
1 change: 1 addition & 0 deletions lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { snippets } from './eval-snippets';

export type AutoConsentCMPRule = {
$schema?: string;
name: string;
vendorUrl?: string;
prehideSelectors?: string[];
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"clean": "rm -r dist",
"lint": "eslint . && prettier . --check && npm run rule-syntax-check",
"bundle": "./build.sh",
"rule-syntax-check": "node scripts/validate-json-rules.js",
"generate-rule-schema": "node scripts/generate-rule-schema.mjs",
"rule-syntax-check": "npm run generate-rule-schema && node scripts/validate-json-rules.js",
"watch": "npm run prepublish && chokidar \"lib\" \"addon\" \"rules/autoconsent\" \"rules/filterlist.txt\" --ignore 'lib/filterlist-engine.ts' -c \"npm run prepublish\"",
"create-rule": "node rules/create-rule.mjs",
"test": "playwright test",
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/aa.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to point to a local file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work fine in my testing. It might be IDE dependent. We can do local refs for now until it’s a problem or we have a need for third party rules. 6cc349d

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, hm, I’m having second thoughts. Using ”../schema.json” as the $schema means that the combined rules in rules/rules.json have invalid $schemas as they’re in a different directory. It seems likely to me that these rules will move around as the project evolves and we explore remote configuration etc. Using an absolute URL ensures that rules are atomic: you can move them, copy/paste them, whatever, and they remain valid.

I reverted 6cc349d.

"name": "aa",
"vendorUrl": "https://aa.com",
"prehideSelectors": [],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/abc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "abc",
"vendorUrl": "https://abc.net.au",
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/abconcerts.be.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "abconcerts.be",
"vendorUrl": "https://unknown",
"intermediate": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/acris.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "acris",
"prehideSelectors": ["div.acris-cookie-consent"],
"detectCmp": [
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/activobank-pt.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "activobank.pt",
"runContext": {
"urlPattern": "^https://(www\\.)?activobank\\.pt"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/adroll.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Adroll",
"prehideSelectors": ["#adroll_consent_container"],
"detectCmp": [{ "exists": "#adroll_consent_container" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/affinity-serif-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "affinity.serif.com",
"detectCmp": [
{
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/aliexpress.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "aliexpress",
"vendorUrl": "https://aliexpress.com/",
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/amazon.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "amazon.com",
"prehideSelectors": ["span[data-action=\"sp-cc\"][data-sp-cc*=\"rejectAllAction\"]"],
"detectCmp": [{ "exists": "span[data-action=\"sp-cc\"][data-sp-cc*=\"rejectAllAction\"]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/amex.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "amex",
"vendorUrl": "https://www.americanexpress.com/",
"cosmetic": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/aquasana-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "aquasana.com",
"prehideSelectors": ["#consent-tracking"],
"detectCmp": [{ "exists": "#consent-tracking" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/arbeitsagentur.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "arbeitsagentur",
"vendorUrl": "https://www.arbeitsagentur.de/",
"prehideSelectors": [".modal-open bahf-cookie-disclaimer-dpl3"],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/asus.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "asus",
"vendorUrl": "https://www.asus.com/",
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/athlinks-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "athlinks-com",
"runContext": {
"urlPattern": "^https://(www\\.)?athlinks\\.com/"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/ausopen.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "ausopen.com",
"cosmetic": true,
"detectCmp": [{ "exists": ".gdpr-popup__message" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/automattic-cmp-optout.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "automattic-cmp-optout",
"prehideSelectors": ["form[class*=\"cookie-banner\"][method=\"post\"]"],
"detectCmp": [{ "exists": "form[class*=\"cookie-banner\"][method=\"post\"]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/aws-amazon.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "aws.amazon.com",
"prehideSelectors": ["#awsccc-cb-content", "#awsccc-cs-container", "#awsccc-cs-modalOverlay", "#awsccc-cs-container-inner"],
"detectCmp": [{ "exists": "#awsccc-cb-content" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/axeptio.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "axeptio",
"prehideSelectors": [".axeptio_widget"],
"detectCmp": [
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/baden-wuerttemberg-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "baden-wuerttemberg.de",
"prehideSelectors": [".cookie-alert.t-dark"],
"cosmetic": true,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/bahn-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "bahn-de",
"vendorUrl": "https://www.bahn.de/",
"cosmetic": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/bbb.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "bbb.org",
"runContext": {
"urlPattern": "^https://www\\.bbb\\.org/"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/bing.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "bing.com",
"prehideSelectors": ["#bnp_container"],
"detectCmp": [{ "exists": "#bnp_cookie_banner" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/blocksy.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "blocksy",
"vendorUrl": "https://creativethemes.com/blocksy/docs/extensions/cookies-consent/",
"cosmetic": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/borlabs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "borlabs",
"detectCmp": [
{
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/bundesregierung-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "bundesregierung.de",
"prehideSelectors": [".bpa-cookie-banner"],
"detectCmp": [{ "exists": ".bpa-cookie-banner" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/burpee-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "burpee.com",
"cosmetic": true,
"prehideSelectors": ["#notice-cookie-block"],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/canva.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "canva.com",
"prehideSelectors": ["div[role=\"dialog\"] a[data-anchor-id=\"cookie-policy\"]"],
"detectCmp": [{ "exists": "div[role=\"dialog\"] a[data-anchor-id=\"cookie-policy\"]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/canyon-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "canyon.com",
"runContext": {
"urlPattern": "^https://www\\.canyon\\.com/"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cassie.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cassie",
"vendorUrl": "https://trustcassie.com",
"cosmetic": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cc-banner-springer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cc-banner-springer",
"prehideSelectors": [".cc-banner[data-cc-banner]"],
"detectCmp": [{ "exists": ".cc-banner[data-cc-banner]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cc-banner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cc_banner",
"cosmetic": true,
"prehideSelectors": [".cc_banner-wrapper"],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/check24-partnerprogramm-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "check24-partnerprogramm-de",
"prehideSelectors": ["[data-modal-content]:has([data-toggle-target^='cookie'])"],
"detectCmp": [
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/ciaopeople-it.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "ciaopeople.it",
"prehideSelectors": ["#cp-gdpr-choices"],
"detectCmp": [{ "exists": "#cp-gdpr-choices" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/civic-cookie-control.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"vendorUrl": "https://www.civicuk.com/cookie-control/",
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "civic-cookie-control",
"prehideSelectors": ["#ccc-module,#ccc-overlay,#ccc"],
"detectCmp": [{ "exists": "#ccc-module,#ccc-notify" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/clickio.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "click.io",
"prehideSelectors": ["#cl-consent"],
"detectCmp": [{ "exists": "#cl-consent" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/clinch.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "clinch",
"intermediate": false,
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/clustrmaps-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "clustrmaps.com",
"runContext": {
"urlPattern": "^https://(www\\.)?clustrmaps\\.com/"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/coinbase.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "coinbase",
"intermediate": false,
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-banner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz banner",
"prehideSelectors": ["#cmplz-cookiebanner-container"],
"detectCmp": [{ "exists": "#cmplz-cookiebanner-container .cmplz-cookiebanner" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-categories.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz categories",
"prehideSelectors": [".cc-type-categories[aria-describedby=\"cookieconsent:desc\"]"],
"detectCmp": [{ "exists": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-notice.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz notice",
"prehideSelectors": [".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"],
"cosmetic": true,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-opt-both.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz opt-both",
"prehideSelectors": ["[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"],
"detectCmp": [{ "exists": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-opt-out.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz opt-out",
"prehideSelectors": ["[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"],
"detectCmp": [
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/complianz-optin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Complianz optin",
"prehideSelectors": [".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"],
"detectCmp": [{ "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/consent-manager.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "consent-manager",
"cosmetic": false,
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookie-consent-spice.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookie-consent-spice",
"cosmetic": false,
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookie-law-info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookie-law-info",
"prehideSelectors": ["#cookie-law-info-bar"],
"detectCmp": [{ "exists": "#cookie-law-info-bar" }, { "eval": "EVAL_COOKIE_LAW_INFO_DETECT" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookie-manager-popup.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookie-manager-popup",
"cosmetic": false,
"runContext": {
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookie-notice.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookie-notice",
"prehideSelectors": ["#cookie-notice"],
"cosmetic": true,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookie-script.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookie-script",
"vendorUrl": "https://cookie-script.com/",
"prehideSelectors": ["#cookiescript_injected"],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookieacceptbar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookieacceptbar",
"vendorUrl": "https://unknown",
"cosmetic": true,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookiealert.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookiealert",
"intermediate": false,
"prehideSelectors": [],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookieconsent2.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookieconsent2",
"vendorUrl": "https://www.github.com/orestbida/cookieconsent",
"comment": "supports v2.x.x of the library",
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookieconsent3.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookieconsent3",
"vendorUrl": "https://www.github.com/orestbida/cookieconsent",
"comment": "supports v3.x.x of the library",
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookiecuttr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookiecuttr",
"vendorUrl": "https://github.com/cdwharton/cookieCuttr",
"cosmetic": false,
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookiefirst.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookiefirst.com",
"prehideSelectors": ["#cookiefirst-root,.cookiefirst-root,[aria-labelledby=cookie-preference-panel-title]"],
"detectCmp": [{ "exists": "#cookiefirst-root,.cookiefirst-root" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookieinformation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "Cookie Information Banner",
"prehideSelectors": ["#cookie-information-template-wrapper"],
"detectCmp": [{ "exists": "#cookie-information-template-wrapper" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/cookieyes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "cookieyes",
"prehideSelectors": [".cky-overlay,.cky-consent-container"],
"detectCmp": [{ "exists": ".cky-consent-container" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/corona-in-zahlen-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "corona-in-zahlen.de",
"prehideSelectors": [".cookiealert"],
"detectCmp": [{ "exists": ".cookiealert" }],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/crossfit-com.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "crossfit-com",
"cosmetic": true,
"prehideSelectors": ["body #modal > div > div[class^=\"_wrapper_\"]"],
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/csu-landtag-de.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "csu-landtag-de",
"runContext": {
"urlPattern": "^https://(www\\.|)?csu-landtag\\.de"
Expand Down
1 change: 1 addition & 0 deletions rules/autoconsent/dailymotion-us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/duckduckgo/autoconsent/refs/heads/main/rules/schema.json",
"name": "dailymotion-us",
"cosmetic": true,
"prehideSelectors": ["div[class*=\"CookiePopup__desktopContainer\"]:has(div[class*=\"CookiePopup\"])"],
Expand Down
Loading