How to debug Enhancer for YouTube™

These instructions are for version 3 only, they will not work if you use version 2.0.*

Debug info is needed to try to reproduce and fix your issue, but first, make sure that the one you want to report is really caused by the extension.
Open your extensions manager and disable Enhancer for YouTube™ then reload YouTube. If the issue persists when the extension is disabled it means it's a bug on YouTube and you can stop here. If the issue disappeared and you have other extensions that interact with YouTube, maybe there is a conflict with one of them, in this case enable Enhancer for YouTube™ and disable them all, then enable them one by one until you find a conflict. Don't forget to reload YouTube each time you enable an extension. If there is a conflict you can stop here and contact the developer of the other extension, otherwise keep reading...

How to copy debug info

  • Open a new tab and load the page where you have found a bug.
  • Press F12 on your keyboard to open the “Developer Tools”.
  • Select the “Console” tab, paste the following code and press “Enter” on your keyboard to execute it:
    document.dispatchEvent(new CustomEvent('efyt-debug'))
  • The browser will prompt you to save a file named “debug info.txt”. Once the file saved, paste the following code in the console and press “Enter” on your keyboard to execute it:
    copy(document.querySelector('ytd-app').outerHTML)
  • The code above will copy data directly to your clipboard. Once copied, open the “debug info.txt” file and scroll down to the end, append one or more blank lines, then paste the data that has been copied to your clipboard and save the file.

YouTube experiments

YouTube is continuously experimenting UI changes and other things that can prevent Enhancer for YouTube™ from working as expected, so by default the extension blocks some experiments, but that can cause unexpected issues on YouTube too.
Since version 3 it's possible to allow all experiments, but this feature cannot be implemented as a setting in the options page because it must be executed immediately when the page load begins, and at this stage your preferences cannot be retrieved, this is why we must create a cookie named “efyt_allow_experiments” that will be used by the extension.

  • Open YouTube in a new tab.
  • Press F12 on your keyboard to open the “Developer Tools”.
  • Select the “Console” tab then...
  • To create the cookie, paste the following code in the console, press “Enter” on your keyboard, then reload all the YouTube pages and check if your issues are fixed.
    document.cookie = 'efyt_allow_experiments=1;domain=youtube.com;path=/;expires=' + new Date(Date.now() + 60*60*24*365*1000).toUTCString()
  • To delete the cookie, paste the following code in the console, press “Enter” on your keyboard, then reload all the YouTube pages.
    document.cookie = 'efyt_allow_experiments=1;domain=youtube.com;path=/;expires=' + new Date(1970,1,1).toUTCString()