From 87ed52d537112344ffbebd1da0eb7a230c0bdab8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 6 Aug 2017 22:08:33 +0530 Subject: Do not remove elements. Removing #placeholder-player and #watch7-sidebar-ads disrupts the layout of other elements. * viewtube.js (removeElements): Remove function. Do not remove #placeholder-player and #watch7-sidebar-ads. --- viewtube.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/viewtube.js b/viewtube.js index fbefce8..dfad54f 100644 --- a/viewtube.js +++ b/viewtube.js @@ -205,16 +205,6 @@ else ytVideosContent = ytVideosAdaptiveFmts; } - function removeElements (selector) { - document.querySelectorAll(selector).forEach(function (element) { element.remove(); }); - } - - /* Remove Player Window */ - removeElements("#placeholder-player"); - - /* Remove Sidebar Ads */ - removeElements("#watch7-sidebar-ads"); - /* Playlist */ var ytPlaylist, ytPlaceholderPlaylist; if ((ytPlaylist = document.querySelector("#player-playlist")) -- cgit v1.2.3