From e0d2436372bbcb63fecd9d61d5c45d0d0e543fbf Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 29 Jul 2019 16:35:30 -0400 Subject: [PATCH] Added support for old youtube theme --- content.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content.js b/content.js index 73734513..6233a922 100644 --- a/content.js +++ b/content.js @@ -427,6 +427,10 @@ function openInfoMenu() { popup.appendChild(popupFrame); let parentNode = document.getElementById("secondary"); + if (parentNode == null) { + //old youtube theme + parentNode = document.getElementById("watch7-sidebar-contents"); + } parentNode.prepend(popup); }