Skip to content

Instantly share code, notes, and snippets.

@friendlyanon
Created August 17, 2018 00:20
Show Gist options
  • Save friendlyanon/efb433e1c68a328976f6004095cac915 to your computer and use it in GitHub Desktop.
Save friendlyanon/efb433e1c68a328976f6004095cac915 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @id fix-old-youtube-layout
// @name Fix old Youtube layout (2018.08.17.)
// @version 1
// @namespace intermission
// @author intermission
// @description Fixes old Youtube layout (2018.08.17.)
// @match https://www.youtube.com
// @match https://www.youtube.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
function fix() {
const el = document.getElementById("content");
if (!el) return;
el.classList.add("content-alignment");
}
window.addEventListener("spfdone", fix, false);
window.addEventListener("load", fix, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment