How to debug Enhancer for YouTube™
Debug information is required to reproduce and fix your issue, but first make sure the problem is actually caused by the extension.
Open your extensions manager, disable Enhancer for YouTube™, then reload YouTube. If the issue persists while the extension is disabled, it means the problem is on YouTube's side and you can stop here.
If the issue disappears and you have other extensions that interact with YouTube, there may be a conflict. In that case, re-enable Enhancer for YouTube™ and disable all other YouTube-related extensions. Then enable them one by one, reloading YouTube each time, until you identify a conflict. If you find one, 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 constantly experimenting with UI changes and other features that can prevent Enhancer for YouTube™ from working as expected. By default, the extension blocks some of these experiments, but this can also cause unexpected issues on YouTube.
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()