Home > Tips and Tricks

YouTube Search Results Left Aligned: How to Fix

In this guide, we will show you the steps to fix the issue of YouTube search results being left aligned. This video streaming service from the Silicon Valley giant undergoes quite aggressive server-side testing and that too and at an alarming frequency. Generally, users who voluntarily sign up to be a tester are part of this testing group, but with YouTube things are different, and not for good.

YouTube Search Results Left Aligned

It carries out these tests with a random set of users, most of whom had no intention to be a part of this group in the first place. Since beta testing is usually an unfinished product with many unpolished and rough edges, users are more often than not left with a buggy version of YouTube. And the same has been the case this time around as well. Many users have voiced their concern that the YouTube search results are now left aligned on their accounts.

YouTube Search Results Left Aligned

As a result of which, the UI looks quite unpleasant and appears to be rather broken, with the search results being pushed toward the left menu bar which ends up creating a large empty space on the right. If you are also part of this testing and wish to revert to the old styler wherein the search results were centrally aligned, then this guide shall help you out. Follow along for the fix.

Fix YouTube Search Results Left Aligned

  1. Head over to the Tampermonkey extension page, and click on Add to Chrome > Add Extension.YouTube Search Results Left Aligned
  2. Then click on the extension’s icon and select Tampermonkey.YouTube Search Results Left Aligned
  3. Then click on Create a new script.YouTube Search Results Left Aligned
  4. Now delete the pre-existing code and copy-paste the script given at the end.YouTube Search Results Left Aligned
  5. The value 410px might not be the best resolution for every display. So change it till you get the desired result.
  6. Once done, go to File and select Save. Then restart the browser, relaunch YouTube, and check out the results.YouTube Search Results Left Aligned
// ==UserScript==
// @name search
// @namespace http://tampermonkey.net/
// @version 0.1
// @description none
// @match https://www.youtube.com/*
// @grant window.onurlchange
// ==/UserScript==

if (window.onurlchange === null) {
    window.addEventListener('urlchange', function() {
        if (location.href.match('https://www.youtube.com/results*')) {
            document.getElementById('page-manager').style.marginLeft = '410px';
        } else {
            document.getElementById('page-manager').style.marginLeft = null;
        }
    }, false);
}
  1. If you ever wish to undo the change and remove this script, then click on the extension icon, select Tampermonkey, and select Dashboard.YouTube Search Results Left Aligned
  2. After that, disable the toggle to turn off this script or hit the Delete icon under Action to permanently delete this script. YouTube Search Results Left Aligned
  3. On the other hand, if you want to remove the Tampermonkey extension, then click on the extension icon, click on the overflow icon next to Tampermonkey, and select Remove from Chrome.YouTube Search Results Left Aligned

That’s it. These were the steps to fix the issue of YouTube search results being left aligned. As far as the official stance on this matter is concerned, the developers are aware of this issue, but they haven’t given out any ETA for the rollout of a fix. As and when that happens, we will update this guide accordingly. In the meantime, the aforementioned workaround is your best bet.


Share:
  • Mine is right aligned, how do i make it left?