{"id":28102217,"url":"https://github.com/nerdsofalltrades/gdpr-cookie-monster","last_synced_at":"2025-05-13T19:34:38.035Z","repository":{"id":57129869,"uuid":"132521688","full_name":"nerdsofalltrades/gdpr-cookie-monster","owner":"nerdsofalltrades","description":"A minimal EU-GDPR compliant cookie consent banner for websites and shops (5.6K gzipped).","archived":false,"fork":false,"pushed_at":"2020-05-24T00:48:07.000Z","size":2092,"stargazers_count":27,"open_issues_count":15,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T11:22:06.645Z","etag":null,"topics":["cookie-banner","cookie-consent","dsvgo","gdpr"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerdsofalltrades.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-07T22:10:51.000Z","updated_at":"2021-10-21T03:27:47.000Z","dependencies_parsed_at":"2022-08-31T19:11:00.039Z","dependency_job_id":null,"html_url":"https://github.com/nerdsofalltrades/gdpr-cookie-monster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdsofalltrades%2Fgdpr-cookie-monster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdsofalltrades%2Fgdpr-cookie-monster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdsofalltrades%2Fgdpr-cookie-monster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdsofalltrades%2Fgdpr-cookie-monster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdsofalltrades","download_url":"https://codeload.github.com/nerdsofalltrades/gdpr-cookie-monster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254013203,"owners_count":21999375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cookie-banner","cookie-consent","dsvgo","gdpr"],"created_at":"2025-05-13T19:33:56.835Z","updated_at":"2025-05-13T19:34:37.994Z","avatar_url":"https://github.com/nerdsofalltrades.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GDPR Cookie Monster\n\n[![Build Status](https://api.travis-ci.org/nerdsofalltrades/gdpr-cookie-monster.svg?branch=master)](https://travis-ci.org/nerdsofalltrades/gdpr-cookie-monster)\n[![Greenkeeper badge](https://badges.greenkeeper.io/nerdsofalltrades/gdpr-cookie-monster.svg)](https://greenkeeper.io/)\n\nA minimal EU-GDPR compliant cookie consent banner for websites and shops (5.6K\ngzipped).\n\nThis is Open-Source Software under MIT license. Use it, change it, copy it,\nbreak it. But don't sell it as your's.\n\n## Try it\n\n```\n$ npm i\n$ npm start\n```\n\n## Use it straight away in your Shop/ Website\n\nAdd the following `script` tag to your website, right before the closing\n`\u003c/body\u003e` tag:\n\n```\n\u003cscript language=\"javascript\" src=\"dist/gdpr-cookie-monster.min.js\"\u003e\u003c/script\u003e\n```\n\nReload the page and a banner should appear at the bottom.\n\n## Reopening banner\n\nThe banner asks for permission to store cookies once per session for cookie\ndeniers and once a month for cookie approvers.\n\nTo allow the user to change his mind (must have with GDPR-compliance) you must\nadd a link in at least the footer of your page (every page):\n\n```\n\u003ca href=\"#\" id=\"noat-cookie-consent__setup\"\u003eCookie Settings\u003c/a\u003e\n```\n\nThis is the re-open link\n🤙 \u003ca href=\"#\" id=\"noat-cookie-consent__setup\"\u003eI am the magic link\u003c/a\u003e\n(does not work on GitHub).\n\n## Customization\n\n### Custom texts\n\nAdd the following code right before the `gdpr-cookie-monster` script tag:\n\n```\n\u003cscript\u003e\nif (!window.noat) {\n  window.noat = {};\n}\nwindow.noat.cookieConsent = {\n  text: 'Use your text why you are using Cookies here',\n  privacyPolicyText: 'The title of the cookie policy link',\n  privacyPolicyUrl: 'The URL to the cookie policy',\n  denyText: 'The deny button title',\n  allowText: 'The allow button title'\n};\n\u003c/script\u003e\n```\n\n### Custom styles\n\nAdd the following code right before the `gdpr-cookie-monster` script tag:\n\n```\n\u003cscript\u003e\nif (!window.noat) {\n  window.noat = {};\n}\nwindow.noat.cookieConsent = {\n  // ... keep settings from above here\n  useCustomCSS: true\n};\n\u003c/script\u003e\n```\n\nIf you are a CSS guru now you can style everythi:ng on your own:\n\n* .noat-cookie\\_\\_consent\n* .noat-cookie-consent\\_\\_banner\n* .noat-cookie-consent-banner\\_\\_text\n* .noat-cookie-consent-banner\\_\\_other-actions\n* .noat-cookie-consent-banner-other-actions\\_\\_privacy-policy\n* .noat-cookie-consent-banner-other-actions\\_\\_deny\n* .noat-cookie-consent-banner\\_\\_allow\n\n## See it live\n\n* https://nerdsofalltrad.es\n* https://uhrwerk.berlin\n\n## Legal Notice\n\nWE ARE NO LAWYERS. SINCE THIS IS OPEN-SOURCE SOFTWARE, CUSTOMIZABLE AND\nIMPOSSIBLE TO TRACK HOW IT IS USED WE CANNOT GIVE ANY WARRANTY OR PROMISE\nTHAT THIS PIECE OF SOFTWARE IS FULLY GDPR COMPLIANT.\n\nPlease contribute if you find issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdsofalltrades%2Fgdpr-cookie-monster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdsofalltrades%2Fgdpr-cookie-monster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdsofalltrades%2Fgdpr-cookie-monster/lists"}