PageSourceSearch

https://www.beobachter-online.de/files/sb/_js/klaro/config_sbx.js

js beobachter-online.de collected 2026-10-02 11:16:43 UTC 7,762 bytes, 190 lines download raw bytes

1// By default, Klaro will load the config from  a global "klaroConfig" variable.
2// You can change this by specifying the "data-config" attribute on your
3// script take, e.g. like this:
4// <script src="klaro.js" data-config="myConfigVariableName" />
5// You can also disable auto-loading of the consent notice by adding
6// data-no-auto-load=true to the script tag.
7var klaroConfig = {
8    // You can customize the ID of the DIV element that Klaro will create
9    // when starting up. If undefined, Klaro will use 'klaro'.
10    elementID: 'klarobeobachter',
11
12    // How Klaro should store the user's preferences. It can be either 'cookie'
13    // (the default) or 'localStorage'.
14    storageMethod: 'cookie',
15
16    // You can customize the name of the cookie that Klaro uses for storing
17    // user consent decisions. If undefined, Klaro will use 'klaro'.
18    cookieName: 'klarobeobachter',
19
20    // You can also set a custom expiration time for the Klaro cookie.
21    // By default, it will expire after 120 days.
22    cookieExpiresAfterDays: 365,
23
24    // You can change to cookie domain for the consent manager itself.
25    // Use this if you want to get consent once for multiple matching domains.
26    // If undefined, Klaro will use the current domain.
27    //cookieDomain: '.github.com',
28
29    // Put a link to your privacy policy here (relative or absolute).
30    privacyPolicy: '/datenschutz.html',
31
32    // Defines the default state for applications (true=enabled by default).
33    default: false,
34
35    // If "mustConsent" is set to true, Klaro will directly display the consent
36    // manager modal and not allow the user to close it before having actively
37    // consented or declines the use of third-party apps.
38    mustConsent: true,
39
40    // Show "accept all" to accept all apps instead of "ok" that only accepts
41    // required and "default: true" apps
42    acceptAll: false,
43
44    // replace "decline" with cookie manager modal
45    hideDeclineAll: false,
46
47    // You can define the UI language directly here. If undefined, Klaro will
48    // use the value given in the global "lang" variable. If that does
49    // not exist, it will use the value given in the "lang" attribute of your
50    // HTML tag. If that also doesn't exist, it will use 'en'.
51    //lang: 'en',
52
53    // You can overwrite existing translations and add translations for your
54    // app descriptions and purposes. See `src/translations/` for a full
55    // list of translations that can be overwritten:
56    // https://github.com/KIProtect/klaro/tree/master/src/translations
57
58    // Example config that shows how to overwrite translations:
59    // https://github.com/KIProtect/klaro/blob/master/src/configs/i18n.js
60    translations: {
61        // If you erase the "consentModal" translations, Klaro will use the
62        // bundled translations.
63        de: {
64            consentModal: {
65                description:
66                    'Hier können Sie einsehen und anpassen, welche Information wir über Sie sammeln.',
67            },
68            inlineTracker: {
69                description: 'Beispiel für ein Inline-Tracking Skript',
70            },
71            externalTracker: {
72                description: 'Beispiel für ein externes Tracking Skript',
73            },
74            adsense: {
75                description: 'Anzeigen von Werbeanzeigen',
76            },
77            recognifed: {
78                description: 'Anzeigen von Werbeanzeigen',
79            },
80            onesignal: {
81                description: 'Benachrichtigung über Neuigkeiten im Browser',
82            },
83            matomo: {
84                description: 'Sammeln von Besucherstatistiken',
85            },
86            camera: {
87                description:
88                    'Eine Überwachungskamera (nur ein Beispiel zu IMG-Tags)',
89            },
90            cloudflare: {
91                description: 'Schutz gegen DDoS-Angriffe',
92            },
93            intercom: {
94                description:
95                    'Chat Widget & Sammeln von Besucherstatistiken (nur ein Beispiel)',
96            },
97            mouseflow: {
98                description: 'Echtzeit-Benutzeranalyse (nur ein Beispiel)',
99            },
100            googleFonts: {
101                description: 'Web-Schriftarten von Google gehostet',
102            },
103            purposes: {
104                analytics: 'Besucher-Statistiken',
105                security: 'Sicherheit',
106                livechat: 'Live Chat',
107                advertising: 'Anzeigen von Werbung',
108                styling: 'Styling',
109                social: 'Soziales (Netzwerken)'
110            },
111            acceptSelected: 'Akzeptieren'
112        },
113       
114    },
115
116    // This is a list of third-party apps that Klaro will manage for you.
117    apps: [
118        {
119            // Each app should have a unique (and short) name.
120            name: 'matomo',
121
122            // If "default" is set to true, the app will be enabled by default
123            // Overwrites global "default" setting.
124            // We recommend leaving this to "false" for apps that collect
125            // personal information.
126            default: false,
127
128            // The title of you app as listed in the consent modal.
129            title: 'Matomo/Piwik',
130
131            // The purpose(s) of this app. Will be listed on the consent notice.
132            // Do not forget to add translations for all purposes you list here.
133            purposes: ['analytics'],
134
135            // A list of regex expressions or strings giving the names of
136            // cookies set by this app. If the user withdraws consent for a
137            // given app, Klaro will then automatically delete all matching
138            // cookies.
139            cookies: [
140                // you can also explicitly provide a path and a domain for
141                // a given cookie. This is necessary if you have apps that
142                // set cookies for a path that is not "/" or a domain that
143                // is not the current domain. If you do not set these values
144                // properly, the cookie can't be deleted by Klaro
145                // (there is no way to access the path or domain of a cookie in JS)
146                [/^_pk_.*$/, '/', 'matomo.mopo-server.de'], //for the production version
147                [/^_pk_.*$/, '/', 'localhost'], //for the local version
148                'piwik_ignore',
149            ],
150
151            // An optional callback function that will be called each time
152            // the consent state for the app changes (true=consented). Passes
153            // the `app` config as the second parameter as well.
154            callback: function(consent, app) {
155                // This is an example callback function.
156                console.log(
157                    'User consent for app ' + app.name + ': consent=' + consent
158                );
159            },
160
161            // If "required" is set to true, Klaro will not allow this app to
162            // be disabled by the user.
163            required: false,
164
165            // If "optOut" is set to true, Klaro will load this app even before
166            // the user gave explicit consent.
167            // We recommend always leaving this "false".
168            optOut: false,
169
170            // If "onlyOnce" is set to true, the app will only be executed
171            // once regardless how often the user toggles it on and off.
172            onlyOnce: true,
173        },
174
175        // The apps will appear in the modal in the same order as defined here.
176        {
177            name: 'adsense',
178            default: false,
179            title: 'Google AdSense',
180            purposes: ['advertising'],
181        },
182        {
183            name: 'recognifed',
184            default: false,
185            title: 'recognifed',
186            purposes: ['advertising'],
187        },
188
189    ],
190};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.