Coder Social home page Coder Social logo

cavi-au / consent-o-matic Goto Github PK

View Code? Open in Web Editor NEW
2.5K 17.0 125.0 2.18 MB

Browser extension that automatically fills out cookie popups based on your preferences

License: Other

JavaScript 80.63% HTML 10.59% CSS 0.34% SCSS 6.84% Swift 1.61%
gdpr cookies consent-management browser-extension

consent-o-matic's People

Contributors

angelospanag avatar autoelboell avatar bouhoula avatar chryxc avatar cklokmose avatar davc0n avatar ddogfoodd avatar dkgof avatar edas avatar eridem avatar guus-frenken avatar hanouta avatar henrikx avatar herrriehm avatar iw0nderhow avatar jaluth avatar jduchateau avatar kampari89 avatar lilfaen avatar mattlomb avatar perdu avatar riedlerod avatar sammacbeth avatar still34 avatar strepon avatar svnhub avatar tamastimar avatar umcconnell avatar whs avatar zigarn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

consent-o-matic's Issues

Not working on most sites

It seems like this worked for a bit, but now it doesn't seem to see any cookie consent form on any site.

At all.

Per domain rules

Some websites requires sometimes special rules, like https://assetstore.unity.com/ requires Targeting Cookies to see videos
I would like to able to set like all pages has these settings, but this specific domain has also Targeting Cookies allowed.

A big thanks

This app is saving me a lot of time and making browsing on the internet way more pleasant.
Thanks for all the hard work you put it and know that it is useful to many.

<3

am I doing something wrong?

Hi, I just installed this because "Consent Blocker", which I use to stop google's redirect to their consent page, does not work on TechCrunch's Yahoo/Verizon powered cookies form.
Well, yours does not either.
Am I doing something wrong?

Other questions:

  • does it reject also legitimate interest or only normal cookies?
  • where we can add a new rule I saw a list of rules providers which can be added. Why do you provide this list instead of automatically include them all per default?
  • just to be sure that I understand how it should work: if it works, I should not get a popup with the consent choice, right?

thanks

Preferences don't seem to stick on genius.com

Every time I load a page on genius.com there's a distracting modal flash as the cookie preferences modal pops up and is dismissed, even if I'm directly clicking a link from another page on the site. It seems like the consent settings aren't being remembered, or there's some other issue causing the extension to try and set them on every page load.

I'm using Consent-O-Matic 1.0.2 with Safari 15.4 on macOS 12.3.1. I haven't yet experienced this issue on any other sites but I just installed the extension so it's possible there are others it applies to as well; it seems their consent form is based on OneTrust's CookiePro.

Injected CSS hides the two-factor auth modal on Rocket Chat

I can not type in the Two-factor auth input form on Rocket-chat.
Wheter I try to login while two-factor auth is activated, or when I try to deactivate two-factor auth from /account/security route.

Consent-O-Matic Extension enabled in brave://extensions/

Checking/unchecking the "Keep running on this site?" option for the extension has no effect.
2021-01-12-155818_1533x716_scrot

Consent-O-Matic Extension disabled in brave://extensions/

2021-01-12-160318_1540x844_scrot

add support for Google consent "Before you continue"

Google has rolled out a new feature, they now ask for cookie consent. This means that now we have to click dozens of times per day on "Accept" when using Cookie-AutoDelete or a similar extension.

Before you continue

Google uses cookies and other data to deliver, maintain, and improve our services and ads. If you agree, we’ll personalize the content and ads you see based on your activity on Google services like Search, Maps, and YouTube. We also have partners that measure how our services are used. Click “See more” to review your options or visit g.co/privacytools anytime.

[I agree]

What about adding support for automatic consent to Google's "Before you continue"?

Note: Google Consent Dialog Remover exists but is inactive and requires too many permissions.

Does not close progress window

Version 1.0.7 does not properly close the progress overlay for existing non-developer users.

We are aware of this issue and are pushing a fix ASAP

dialog-polyfill.css issue

Hi there,

I discovered an issue with your extension. On a website I am using, dialogs were not shown properly. When I looked at the developer panel, I discovered that your extension was injecting a css file dialog-polyfill.css that was causing the <dialog> element of the page to have the display property set to none:

dialog:not([open]) { display: none; }

The real issue is that even if I uncheck "Keep running on this site?" the css is still injected and is causing the issue. I am forced to disabled completely the extension to make the website work.

Differences between this and Auto Cookie Output

This is not a bug report, but a discussion.

I'm wondering if the developers are aware of the extension Auto Cookie Output? These two extension seem to achieve the same goal. What are the differences? Seems Consent-O-Matic currently is a better option, since is more under active development and offers more customisation options. Not to mention it has the larger rule lists. Is any possibility that two projects cooperate?

High cpu usage for youtube

I found issue on youtube (but issue is probably not limited to only that site)
Where extension is constantly executing via MutationCalback and is doing a lot of Document.querySelectorAll calls causing 100% cpu usage.

image
here you can see profile record for youtube site (with paused video) and as you can see this extension is responsible for 96% of cpu time

Issue reproduced on chrome and firefox.
I think there should be some debouncing introduced here and maybe some timeout when extension no longer tries to look for popup (eg. if nothing was detected for eg. 30s then we unsubscribe from all events) and allso after popup was handled (not sure if that is implemented already)

GDPR not GPDR

On the "Wiki" tab above: under "Further Reading" the two reference papers linked are titled GPDR .. but it's actually GDPR. Apologies, but as a newbie, I don't know how(if?) I can correct this..

Add link to this repository on addons.mozilla.org

Thanks for developing this extension and making many sites more usable for me.
I couldn't find the link to this code repository anywhere on the official mozilla addons site.
I think it would be helpful and reassuring to add a link there.

Consent-o-matic is visually blocking

Sometimes when sites load slow or have really elaborate consent forms and it takes up to about 10 or even 30 seconds where I have to impatiently wait for the magic to happen.

I think it would be better if consent-o-matic didn't have a modal but would just be a little box somewhere and still allows me to interact with the page.

I often just want to scroll or start searching the text for a specific term but I can't because the consent form is still being processed.

Possible performance issue?

I was writing new message here: uBlockOrigin/uBlock-issues#1027

and my browser slowed down to a crawl. It was not possible to type, because characters appeared on screen in second long intervals. Recorded profile shown
Consent-O-Matic on top. I disabled it in about:addons and issue stopped immediately.

I have many extensions and it seems GitHub was inserting new messages into the thread at this time, so it does not seem to be easily reproducible.

Hmmmm, looking at the profile, Refined GitHub is responsible for nearly half of the slowdown. Maybe some weird racing issue?

https://profiler.firefox.com/public/f14bf159d0597d898c0a44c7534d883e85ec2fe3/calltree/?globalTrackOrder=0-1&localTrackOrderByPid=1249-1-2-0~3798-0-1~&thread=2&v=4


It's all in querySelectorAll.

Deal with consent forms that are on a secondary page

Hi

Some sites redirect to a secondary webpage to give or refuse consents. Is there a way to tell the extension to open a page in an hidden way and continue the consent process with this hidden page?

Exemple with https://www.francetvinfo.fr/

At first access you have a popin at the lower right corner. You access to the consent panel by clicking on "paramétrez vos cookies et consentements" ("tune your cookies and consents") but the opening panel isn't complete. Some consent switches are behind the "politique de gestion des cookies et sdk" ("cookies and sdk policies") link which redirect to a secondary page on the domain of the mother company.

There you have to scroll down to the end of the page and click on the button "gérer les cookies" ("tune cookies") to have access to other options (these are different, someare only on the first page, some are only on this secondary page).

This is important because most of these secondary switches are « on » by default, even is they shouldn't legaly.

If I make the extension click on the "politique de gestion des cookies et sdk" ("cookies and sdk policies") link I'm redirected and I have no way to go back with the extension (and even if I could, this would be an horrible experience)

Dead news link

The link https://www.prosa.dk/artikel/virksomheder-narrer-brugerne-til-mere-dataovervaagning/ on README.md seems dead. It said:

The news record is not available anymore.
Kommentarer
Log på Mit PROSA for at se eller skrive en kommentar til artiklen

The news record is not available anymore.

Magisk Module

Would it be too much to ask if this can be created into a Magisk Module for Android?

Inacessible UI elements on the options/settings to choose which things to refuse

The interface to choose which categories to grant or deny consent for is inaccessible. Screen readers do not correctly detect whether the setting is to grant or to deny.

A simple solution would be using standard checkbox elements. Some other mechanism such as including a text on the clickable element might work as well.

Javascript error thrown on page with no CMP

Seen whilst running a local development server (which does not present a CMP popup)

Unknown action type: ifallowall
createAction @ Action.js:18
(anonymous) @ CMP.js:15
CMP @ CMP.js:13
(anonymous) @ ConsentEngine.js:15
ConsentEngine @ ConsentEngine.js:13
(anonymous) @ contentScript.js:23
Promise.then (async)
(anonymous) @ contentScript.js:15
Promise.then (async)
(anonymous) @ contentScript.js:14
Promise.then (async)
(anonymous) @ contentScript.js:7

Browser: Google Chrome Version 102.0.5005.115 (Official Build) (x86_64)
OS: MacOS Monteray 12.4

Relevant object dumps from CMP.js

CMP

{
    "name": "Facebook",
    "detectors": [
        {
            "config": {
                "presentMatcher": [
                    {
                        "type": "css",
                        "target": {
                            "selector": "[data-testid=\"cookie-policy-manage-dialog\"]"
                        }
                    }
                ],
                "showingMatcher": [
                    {
                        "type": "css",
                        "target": {
                            "selector": "[data-testid=\"cookie-policy-manage-dialog\"]",
                            "displayFilter": true
                        }
                    }
                ]
            },
            "presentMatchers": [
                {
                    "config": {
                        "type": "css",
                        "target": {
                            "selector": "[data-testid=\"cookie-policy-manage-dialog\"]"
                        }
                    }
                }
            ],
            "showingMatchers": [
                {
                    "config": {
                        "type": "css",
                        "target": {
                            "selector": "[data-testid=\"cookie-policy-manage-dialog\"]",
                            "displayFilter": true
                        }
                    }
                }
            ]
        }
    ],
    "methods": {}
}

methodConfig

{
    "action": {
        "type": "ifallowall",
        "trueAction": {
            "type": "click",
            "target": {
                "selector": "[data-cookiebanner=\"accept_only_essential_button\"]"
            }
        },
        "falseAction": {
            "type": "click",
            "target": {
                "selector": "[data-cookiebanner=\"accept_button\"]"
            }
        }
    },
    "name": "DO_CONSENT"
}
name: "Facebook"

Trustarc Preference Manager

Hello!

First of all, thanks a lot for the project :)

The issue I've encountered is with the automatic filling of the Trustarc Preferences manager (specifially when visiting the Proquest Library websites). Trustarc requires a popup to be opened, and if one has blocked pop ups, then Consent-o-matic gets stuck in a loop.

You can find a test link here.

Thanks, and let me know if you need any additional information!

Properly license the code

There is no mention of any license anywhere in this project, be it MIT, GPL, proprietary or any other license. Could you clarify under which license you intend this to be released, @dkgof?

Not working for Youtube

I'm constantly using TOR via the real TOR browser or Brave Private/Tor windows and this never works on Youtube. This may be an issue on other sites as well but I rarely use/visit other sites that nag about this in general so I don't have a lot of potential to spot this failing elsewhere.

App moved from in my face and brilliant to nested in lower right corner and not so brilliant

First, Consent-O-Matic is/was/used to be an fantastic addon that saved me a near infinite number of cliks.

Second, here is how C-O-M is behaving recently (Firefox 102, OSX 10.13) : before I had a centered full screen cookie selection pop-up from the visited website. It was automagically filled and disappeared after less than 5 seconds.
Now I get a small blue rectangle in the lower right corner of my screen. It stays there and as long as it stays there I cannot click on any link on the page.

Is it just me ? Is it a bug or a feature ?

lower right blue rectangle on the following screenshot of the WaPo homepage.

Screenshot 2022-07-02 at 09-06-56 The Washington Post Breaking News World US DC News and Analysis

good idea, but

This add-on is a great idea. Just a shame it fails on many sites. Generating my own rules... well, that won't work.

Is it actively being developed\improved?

Support for Firefox mobile

Banners are most annoying in mobile browsers as you need to scroll a lot or they try to fool you with different colors to accidentally accept the cookie, therefore support for mobile browsers such as Firefox would be great.

Tooling for Rules.json

Hi

Thank you for your extension.

I tried some rules and working with a large json with so many options was a bit hard for me. To simplify my own tests, I created some tools.

  • a validation script (in test.js) which helps point me at error before executing anything (and because the extension is not always throwing errors when something expected is not there)

  • and a build script (in build.js) which takes many individual json files and merge them together, and helps me focusing on one CMP at a time.

I did not start a PR because I didn't knew if it was welcomed for this kind of changes, but feel free to take the scripts if you want to, or to tell me to fill a PR for that.

See https://github.com/edas/web-sanitization/tree/master/src

Feature request: Disable the confirmation dialog of "Let us know" button + Pending sites-report

This is not an issue, and I'm not sure where to put feature requests, so here goes:

Hi you wonderful people of the Consent-O-Matic extension.

I'm VERY happy for this extension - and equally VERY unhappy about the current GDPR implementation on the internet, which is why this extension was made. So thank you!

Disable confirmation dialog on Let us know-button

I use the "Let us know" button daily for sites that the extension can't consent to automatically, and I always click the button and immediately get on with my business, forgetting I have to press OK in the confirmation dialog.

I'd like a setting to disable this confirmation dialog (clicking the Let us know-button is always OK). That would be nice! :)

Link to uploaded report / aggregated list of sites pending processing.

I report sites daily and I'm actually unsure if the reportings actually work, as it just closes after clicking OK (which is good! On with the business). I tried with the DevTools network tab to see if the request actually succeeds, but it's hard to find the actual extension network activity.

I'd like a link to either the uploaded report and/or, if you are just aggregating a list, a link to the list, if that could be public.

Best regards
SvendK

Add facebook CMP

Facebook have updated their CMP, so requesting support for it.

billede

billede

Editor toggles not rendered correctly Firefox / char encoding not declared

The css for the Rule Editor does not render the toggle thingies (^ and v) as intended in Firefox (96.0 linux) because the character encoding is not declared to be utf-8.

The following rules rules in: Extension/editor/scss/main.scss

content: "v\00a0" attr(data-fold-name);

content: "^\00a0" attr(data-fold-name) ;

render an additional A-circumflex in Firefox (but not in Chrome) :
consent-o-magic

I assume the intention of the '00a0' char is to add a bit of padding. This could probably be achieved by more css. The underlying problem seems to be that the character encoding is not provided for the html, at least the console complains quite loudly. Not sure how one is supposed to provide the encoding in xpi, but one of:

<!DOCTYPE html> at the top of index.html declaring html5 which has utf-8 per default

or

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

should do the trick. Or use a regular space, that seems to work as well :)

Is this extension too complicated?

I'm sorry if this is a really stupid issue, but I feel like this extension is way overcomplicated. Why would anyone need support for specifically selecting cookies to allow? Doesn't everyone just deny all of them? Making a consent handler that goes through the entire dialogue clicking buttons and settings sliders and stuff doesn't seem logical when most (or at least most that I come across) simply contain a button to deny everything. I understand that these measures are still needed for the more annoying popups that don't feature such option, yet I believe this procedure is currently also employed for a few popups that do in fact have one.

On a related note, I'm curious as to why there are seperate matchers for detecting when the popup exists on the page and when it is actually showing. Wouldn't it be enough to only account for the latter?

Guardian Cookie Banner not being recognised

Thanks for this extension, it's exactly what I've looking for.

However it doesn't seem to be recognising the Guardian cookie banner, looks like the selectors might need updating:

guardian-consent-o-matic

The extension currently looks for '#cmpContainer' (

"selector": "#cmpContainer"
) but when I look for that ID on the page I get no results.

Browser Used: Brave - Version 1.35.103 Chromium: 98.0.4758.102 (Official Build) (64-bit)

Website: https://www.theguardian.com/uk

I'm happy to play around and try submit a PR if you want 😄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.