Sites.google.com page not displayed

Hi community,

having a weird issue: I have created a very simple website on sites.google.com ( Fürstenberger Yachtclub ). When I add this webaddress to my info-beamer setup it simply is not displayed or rather ignored (no error meassage or anything, it is just not shown). Any other webpage I created on my nginx webserver works just fine. Also google (as a test) is displayed perfectly. What am I missing here/doing wrong? Your help is much appreciated.

Thank you in advance!

Hey. I’ve updated the browser package you’ve been running. I think it works now? Might be some google issue where they (for some reason?) enforce a minimum browser version.

1 Like

yes, it works. Thanks! I have in parallel seen my setup restarting and suspected already someone doing something. :slight_smile: Thank you so much!

Now I see the page but I get a white box asking me to acknowledge that this site uses cookies. Can I somehown suppress this message or “click OK”?

Thank you so much!

The real problem that needs to be addressed here is, of course, Google and the general nuisance of cookie banners. As that’s never going to happen, the second best thing is to run a script. The package has an option for that. I’ve added the following to click on every “Ok” found on the page

Regex matching when to run the script: ^https://sites.google.com/.* and the script itself:

(function() {
    const clickTarget = () => {
        const targetDiv = Array.from(document.querySelectorAll('div > span'))
            .find(span => span.textContent.trim().toLowerCase() === 'ok')
            ?.parentElement;

        if (targetDiv) {
            targetDiv.click();
        }
    };

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', clickTarget);
    } else {
        clickTarget();
    }
})();

Thankfully AI generated by google itself, thus completing the circle of wasted resources.

1 Like

OMG, you are just the best! Thank you so much, this helps tremendously! If I could, I would hand you a massive jar of real-life grandma’s cookies. :cookie: Thanks again!

1 Like