Hide Cookie Banner – Script Automation (BETA) 

Introduction

When adding a web page to Yodeck, managing cookie banners effectively is essential for a seamless display. Cookie banners can significantly impact the appearance of a web page, sometimes blocking critical elements. To address this challenge, Yodeck offers a “Hide Cookie Banner” script template that simplifies the process. This innovative tool automatically handles cookies for major providers and popular custom setups, ensuring a clean and uninterrupted viewing experience without complex scripting.


Overview

When adding a web page in Yodeck, you must understand that it will run in a new browser window. This means that a web page containing a cookie banner will show up on your screen, significantly impacting its appearance and potentially blocking a useful part of the page. 

To help you avoid this process, we have created a “Hide Cookie Banner” script template that you can easily toggle on and off.


How it works

The “Hide Cookie Banner” script template is an extensive script that handles all the major cookie providers across the web (OneTrust, CookieBot, UserCentrics, Osaka, etc.) and many other custom cookie banner setups by popular websites. Its aim is to automatically click “Accept Cookies” to permanently hide the banner from your screen without requiring you to create a custom script.


Troubleshooting

This option is in BETA and won’t work in 100% of cases. Common problematic scenarios: 

  • The script can’t locate the “Accept Cookies” button. If that’s the case, you’ll still see the banner in the preview of the web page. To remove it, please disable this option and create a custom script. You can check instructions on how to create a script here, or you can contact our support team, which will help you build the script.
  • The script also clicked other elements in the web page that opened a different popup. If that’s the case, you’ll see the new popup/banner in the preview of the web page. To remove it, please disable this option and create a custom script. You can check instructions on creating a script here, or you can contact our support team, which will help you build the script.
  • The script seemingly doesn’t work in preview mode but will work on an actual Yodeck Player. In rare cases, the script template won’t work in the preview mode due to browser limitations. If you have a player available, please also test it there before concluding it won’t work for your case.