https://github.com/phifa/embedconsent
Cookieconsent extension that toggles embeds from YouTube, Vimeo or Google Maps for better privacy.
https://github.com/phifa/embedconsent
cookie cookieconsent dsgvo embed gdpr google maps vimeo youtube
Last synced: 2 months ago
JSON representation
Cookieconsent extension that toggles embeds from YouTube, Vimeo or Google Maps for better privacy.
- Host: GitHub
- URL: https://github.com/phifa/embedconsent
- Owner: phifa
- License: mit
- Created: 2018-08-22T11:59:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T06:43:09.000Z (over 6 years ago)
- Last Synced: 2025-03-10T17:56:20.241Z (3 months ago)
- Topics: cookie, cookieconsent, dsgvo, embed, gdpr, google, maps, vimeo, youtube
- Language: JavaScript
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Embedconsent
## Cookieconsent extension, written in Vanilla Javascript that toggles embeds from YouTube, Vimeo or Google Maps for better privacy.
**Embedconsent depends on cookieconsent. You can find it here:**
https://www.npmjs.com/package/cookieconsent### Setup and Usage
`npm i @phijufa/embedconsent`
Check out the example folder. Everything is written in modern Javascript, so you might need Webpack/Babel to make it work for your environment.
There are two basic methods:
`embedconsent.init()` and `embedconsent.rerender()`. The `init()` method needs to be called the first time the page loads. The `rerender()` method will rerender the content based on the current cookie status.