mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Added support for old youtube theme
This commit is contained in:
@@ -427,6 +427,10 @@ function openInfoMenu() {
|
|||||||
popup.appendChild(popupFrame);
|
popup.appendChild(popupFrame);
|
||||||
|
|
||||||
let parentNode = document.getElementById("secondary");
|
let parentNode = document.getElementById("secondary");
|
||||||
|
if (parentNode == null) {
|
||||||
|
//old youtube theme
|
||||||
|
parentNode = document.getElementById("watch7-sidebar-contents");
|
||||||
|
}
|
||||||
|
|
||||||
parentNode.prepend(popup);
|
parentNode.prepend(popup);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user