Header Banner
Null Byte Logo
Null Byte
wonderhowto.mark.png
Cyber Weapons Lab Forum Metasploit Basics Facebook Hacks Password Cracking Top Wi-Fi Adapters Wi-Fi Hacking Linux Basics Mr. Robot Hacks Hack Like a Pro Forensics Recon Social Engineering Networking Basics Antivirus Evasion Spy Tactics MitM Advice from a Hacker

Get YouTube's New Layout Today with a Simple JavaScript Hack

As many of you may have noticed, nearly every Google product (i.e. Gmail, Google search, etc.) has gone through a bit of a makeover since the release of Google+. Big blocky buttons and enormous font sizes are apparently the thing of the future, and with a cool JavaScript hack, you can have a goofy YouTube, too! Now, I'm actually just being a bit facetious, the new YouTube is really the only thing that I like out of all of Google's recent redesigns. It looks pretty sleek.

This cool little JavaScript hack simply adds a cookie, and when you access the home page, a PHP script displays content to the user depending on if they have the special developer cookie or not, and displays content accordingly. Much like a website filters out who has what browser.

Hack the Tubes!

The script can be entered in two ways actually. We can void our cookies with a JavaScript injection. Alternatively, we could enter it straight into the JavaScript console. Here's how to do it:

  1. Open your browser.
  2. Sign into YouTube.
  3. Depending on your browser, you need to use different keys to get to the console.

        Firefox - ctrl + shift + k

        Chromium(Windows) - ctrl + shift + j

        Chromium(OSX) - cmd + alt + j
  4. Force the cookie on your account.

    document.cookie="VISITOR_INFO1_LIVE=ST1Ti53r4fU";
  5. Alternatively, inject a JavaScript injection into your address bar.

    javascript:void(document.cookie="VISITOR_INFO1_LIVE=ST1Ti53r4fU");

Here's a quick video so you can see how it's done:

If you can't get enough Null Byte, come to IRC or start your own topics in the forums. You can also follow me on Twitter and G+!

Apple's iOS 26 and iPadOS 26 updates are packed with new features, and you can try them before almost everyone else. First, check Gadget Hacks' list of supported iPhone and iPad models, then follow the step-by-step guide to install the iOS/iPadOS 26 beta — no paid developer account required.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!