mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
d505eeb269
Block the raw widget unless consent has been granted. This is helpful because the tw2parser generates <$raw> widgets for content embedded with <html>, and thus this blocks YouTube embeds. |
||
---|---|---|
.. | ||
buttons | ||
config | ||
banner.tid | ||
blocked-embed-message-wrapper.tid | ||
config.tid | ||
docs.tid | ||
plugin.info | ||
raw-widget.js | ||
readme.tid | ||
startup.js | ||
styles.tid | ||
youtube-macros.tid |
title: $:/plugins/tiddlywiki/consent-banner/readme The ''consent-banner'' plugin helps make websites that are compliant with "cookie legislation" such as the [[EU General Data Protection Regulation|https://gdpr.eu/cookies/]]. It presents a banner inviting the user to accept or reject cookies, keeping track of their consent in local storage so that the banner can be hidden on subsequent visits. By default, content embedded with <iframe>, <embed> and <object> is blocked unless the user consents to accept cookies. Consent status is available via a configuration tiddler so that it is possible to construct content that behaves differently depending upon whether consent has been granted. As an example, a macro is provided for embedding ~YouTube videos that automatically uses the youtube-nocookie.com variant of video URLs unless the user has accepted cookies. Please note that using this plugin does not guarantee compliance with any particular legislation. You will need to understand the technical issues specific to your situation, and if necessary seek legal advice.