cavi-au / Consent-O-Matic

Browser extension that automatically fills out cookie popups based on your preferences
Other
2.53k stars 123 forks source link

usercentrics.eu on srf.ch #404

Open salim-b opened 8 months ago

salim-b commented 8 months ago

The site srf.ch uses the CMP usecentrics.eu. Just hiding the consent banner without giving consent disables video playback. Thus it would be nice if Consent-O-Matic would support the site out of the box.

A rule for usecentrics.eu was added in https://github.com/cavi-au/Consent-O-Matic/pull/167 and updated in https://github.com/cavi-au/Consent-O-Matic/pull/317. Unfortunately this rule doesn't work on srf.ch. It needs different CSS selectors to work.

I tried adapting the existing usecentrics.eu rule but got stuck. So far I figured we probably need to

Would be glad if someone more proficient could take over from here 🙏

wildwizzy commented 8 months ago

I found similar issues. The CMP idea is a great idea, however, each CMP tries to be generic, but the issue is many web sites use different button IDs and also consent buttons. I did get rsonline working for postoffice by using conditional css statements (see pull request for details: #405 ). I suspect if there are many web sites that try to use the same CMP but fail, the best solution is to make the CMPs specific to the web site by checking the URL, otherwise trying to get it work for so many web sites is just too complicated and we lose track of which web sites it is meant to handle.

My thoughts are with srf.ch if the differences are small you can try to modify the usecentrics.eu CMP with some ifcssactions, otherwise make the usecentrics.eu CMP check the URL, and create a new CMP for srf.ch.