Pinterest Stumbleupon Whatsapp

If you prefer using dark modes on websites, you’ll be happy to know that the option is now available on YouTube as pointed out on Reddit. But it will require delving into your browser’s developer tools to activate the new YouTube layout How to Activate YouTube's New Design Right Now How to Activate YouTube's New Design Right Now YouTube has a new design but it isn't public yet. Here's a quick trick you can use to see what the new design looks like! Read More .

Step 1: Access Developer Tools

The first thing to do is go to YouTube and make sure that you’re logged in before you access your browser’s developer tools.

Google Chrome

To access Chrome’s developer tools, go to View > Developer >  Developer Tools and go to the Console Tab. You can also get there by using the keyboard shortcut Cmd + Option + I on Mac or Ctrl + Shift + I on Windows.

Opera

Go to View > Show Developer Tools. When the Developer Menu shows up in the menu go to Developer > Developer Tools. You can also use the keyboard shortcut Cmd + Option + I on Mac or Ctrl + Shift + I on Windows.

Firefox

Go to Tools > Web Developer > Web Console or use the keyboard shortcut Cmd + Option + K on Mac or Ctrl + Shift + K on Windows.

You can’t access developer tools in the regular download of Safari.

Step 2: Enter the Code

Paste the following into the web console:

var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear( ) + 1);
document.cookie="VISITOR_INFO1_LIVE=fPQ4jCL6EiE; expires=" + cookieDate.toGMTString( ) + "; path=/";

Step 3: Refresh the Page

Close the console and refresh the page. You’ll know it worked if the page looks like this:

Did You Know YouTube Has a Secret Dark Mode? YouTube NewProfile 670x305

Step 4: Enable Dark Mode

Click on your profile picture in the top-right corner and click on Dark Mode.

Did You Know YouTube Has a Secret Dark Mode? DarkMode Menu 262x500

You can then toggle the feature on.

Did You Know YouTube Has a Secret Dark Mode? ActivateDarkMode

When enabled, YouTube’s dark mode will look like this:

Did You Know YouTube Has a Secret Dark Mode? YouTube DarkMode 670x304

How to Turn Dark Mode Off

If you would like to revert to the original layout, paste the following in the console:

var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear( ) - 1);
document.cookie="VISITOR_INFO1_LIVE=fPQ4jCL6EiE; expires=" + cookieDate.toGMTString( ) + "; path=/";

Close the console and refresh the page, and YouTube should be back to how it looked before.

There are some drawbacks to using this layout. It removes the Google Chromecast button from the video — but you should still be able to cast videos from the browser button.

What do you think of YouTube’s dark mode? Do you plan to use it or do you prefer YouTube the way it is? Let us know in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Oh well...
    April 19, 2017 at 2:00 pm

    Doesn't work.

    • Nancy Messieh
      April 26, 2017 at 7:17 pm

      What browser are you using?

  2. Baptiste Gavalda
    April 19, 2017 at 10:10 am

    I don't well understand the script. Why do we set date to last year date ?

    • Nancy Messieh
      April 26, 2017 at 7:16 pm

      When setting it up, you set it to one full year so that you don't have to enter the script every time you open CHrome.

      • Baptiste Gavalda
        April 27, 2017 at 2:52 pm

        Ahh... ok