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

WP group #336

Open
wojtekmaj opened this issue Jul 21, 2023 · 0 comments
Open

WP group #336

wojtekmaj opened this issue Jul 21, 2023 · 0 comments
Labels
CMP request A request to add/change support for a specific CMP

Comments

@wojtekmaj
Copy link

Here's a draft I made for WP group, Polish news network.

{
    "$schema": "https://raw.githubusercontent.com/cavi-au/Consent-O-Matic/master/rules.schema.json",
    "Wirtualna Polska": {
        "detectors": [
            {
                "presentMatcher": [
                    {
                        "type": "url",
                        "url": [
                            "https://www.wp.pl/"
                        ]
                    },
                    {
                        "type": "url",
                        "url": [
                            "https://komorkomania.pl"
                        ]
                    },
                    {
                        "type": "url",
                        "url": [
                            "https://parenting.pl"
                        ]
                    },
                    {
                        "type": "url",
                        "url": [
                            "https://www.pudelek.pl"
                        ]
                    },
                    {
                        "type": "url",
                        "url": [
                            "https://www.dobreprogramy.pl"
                        ]
                    }
                ],
                "showingMatcher": [
                    {
                        "type": "css",
                        "target": {
                            "selector": "div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > h3:first-child",
                            "textFilter": [
                                "Cenimy Twoją prywatność"
                            ]
                        },
                        "parent": {
                            "selector": "body > div"
                        }
                    }
                ]
            }
        ],
        "methods": [
            {
                "name": "HIDE_CMP"
            },
            {
                "action": {
                    "type": "click",
                    "target": {
                        "selector": "div:nth-child(1) > div:nth-child(2) > div:nth-child(3) > div > button",
                        "textFilter": [
                            "USTAWIENIA ZAAWANSOWANE"
                        ]
                    },
                    "parent": {
                        "selector": "body > div"
                    }
                },
                "name": "OPEN_OPTIONS"
            },
            {
                "action": {
                    "type": "click",
                    "target": {
                        "selector": "div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > div > label",
                        "textFilter": [
                            "Wyrażam sprzeciw dla przetwarzania moich danych na podstawie Uzasadnionego Interesu w odniesieniu do wszystkich wymienionych powyżej celów Zaufanych Partnerów z IAB."
                        ]
                    },
                    "parent": {
                        "selector": "body > div"
                    }
                },
                "name": "DO_CONSENT"
            },
            {
                "action": {
                    "type": "click",
                    "target": {
                        "selector": "div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div > button",
                        "textFilter": [
                            "ZAPISZ"
                        ]
                    },
                    "parent": {
                        "selector": "body > div"
                    }
                },
                "name": "SAVE_CONSENT"
            },
            {
                "name": "UTILITY"
            }
        ]
    }
}
@svnhub svnhub added the CMP request A request to add/change support for a specific CMP label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMP request A request to add/change support for a specific CMP
Projects
None yet
Development

No branches or pull requests

2 participants