PageSourceSearch

https://www.musee-mauricedenis.fr/squelettes/js/rgpd.js

js musee-mauricedenis.fr collected 2026-10-02 11:48:06 UTC 2,044 bytes, 53 lines download raw bytes

1document.querySelectorAll("iframe[src^='https://www.youtube.com']").forEach(iframe => {
2    iframe.src = iframe.src.replace('https://www.youtube.com', 'https://www.youtube-nocookie.com')
3})
4
5window.didomiEventListeners = window.didomiEventListeners || [];
6window.didomiEventListeners.push({
7  event: 'preferences.clicksavechoices',
8  listener: function () {
9    document.location.reload();
10  }
11});
12
13window.didomiOnReady = window.didomiOnReady || [];
14window.didomiOnReady.push(function (Didomi) { 
15
16    let yt = 
17        Didomi.getUserConsentStatusForPurpose('videos-zPhxQjRz') &&
18        Didomi.getUserConsentStatus(Didomi.Purposes.Cookies, 'c:youtubev-nhrXP2JJ')
19
20    // Bloquage de YT
21    if(!yt) {
22        document.validYt = function() {
23            var transaction = Didomi.openTransaction();
24            transaction.enablePurposes('cookies', 'videos-zPhxQjRz');
25            transaction.enableVendor('c:youtubev-nhrXP2JJ');
26            transaction.commit();
27    
28            document.location.reload();
29        }
30    
31        document.querySelectorAll("iframe[src^='https://www.youtube']").forEach( iframe => {
32            let div = document.createElement('div')
33            div.style.width = '560px'
34            div.style.textAlign = 'center'
35            div.style.margin = '0 auto'
36            div.style.border = '1px solid black'
37            div.style.backgroundColor = 'black'
38            div.style.color = 'white'
39            div.style.padding = '100px 0'
40
41            //border: 1px solid #000;padding:100px 40px;background-color: black;color: white;
42
43            //div.style.backgroundColor = '#ccc'
44            div.style.display = 'inline-block'
45            //div.style.width = '560px'
46            div.innerHTML = `<p style="color:white;">YouTube est désactivé. Acceptez le dépôt de cookies pour accéder au contenu.</p><button onclick="validYt()" style="background-color:#d20072;padding:10px;border:0px;color:white">Accepter</button>`;
47    
48            iframe.parentElement.replaceChild(div, iframe);
49        })    
50    }
51
52
53});

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.