0

External HTML cookies autorization

Hello i have a website that i want to display but wend the brightsign loads the website a promp appers to accept the cookies for that website is there way of automatically accept the cookies ?

6 comments

  • 0
    Avatar
    André Torres

    Using a mouse is not a option because the player is to be maintenance free in case of power failure

  • 0
    Avatar
    Nick Young

    You can inject JS into the browser running on the player. Best to read up on this:

    https://docs.brightsign.biz/display/DOC/roHtmlWidget#roHtmlWidget-[roAssociativeArray]javascript_injection

    and this:

    https://docs.brightsign.biz/display/DOC/roHtmlWidget#roHtmlWidget-InjectJavaScript(codeAsString)AsBoolean

    It is not implemented in BrightAuthor, so your only route is to either create a basic autorun from scratch that displays your HTML page, or develop a plugin to interact with the HTML widget from within the Brightauthor presentation.

    That said, I'd suggest raising a support ticket as they have done this before and will probably have some code you can use.

    You'll still need to figure out the specific JS code to mimic interacting with 'accept cookies' button on your website.

  • 0
    Avatar
    Brandon

    You usually don't need to use JS to actually "click" the button, especially if it's non-interactive.
    If the box/message/etc has its own CSS style, which is often the case, you can use a User Stylesheet (CSS overload) to set the opacity to 0 for that style and effectively make it disappear.

  • 0
    Avatar
    André Torres

    The website darkens the background wend the pop up shows would that work has well ?

  • 0
    Avatar
    Brandon

    Probably as the darkening is usually just a partially-transparent overlay.

    The usual strategy is to use the Remote Web Inspector to inspect the elements on the page in the player's browser then dig through their CSS to determine what needs to be changed.  Oftentimes you'll be lucky and there's a container class encompassing all the cookie notice elements.

    I haven't rechecked recently, but the below used to be true at least a couple of months ago...

    This CSS code works for https://solarlog-web.net/ and many of the common cookie consent pop-ups since many sites use the same library.

    .cc-floating {

    opacity : 0;

    }

    A similar one from https://www.manitoba511.ca/en/mobile/

    .disclaimer-lightbox {

    opacity : 0;

    }

    One from http://www.tobe.nl/

    #eagerly-tools-cookie-overlay, #eagerly-tools-cookie {

    opacity:0;

    }

    For http://ndi.tv/

    .cookie-law-banner {

    opacity:0;

    }

    _________________________________________________________________________

    Friendly reminder, the community forum is intended for user-to-user discussion.  It is not regularly monitored. For troubleshooting problems and to ensure a timely answer from a BrightSign representative, please submit a support ticket.

  • 0
    Avatar
    André Torres

    brandon thank you for that it does work after digging around the css, for the website the only problem that i have now for some reason the webpage now redirects me to the login page of the website after the css loads

Please sign in to leave a comment.