aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2017-08-06 22:08:33 +0530
committerArun Isaac2017-08-06 22:08:33 +0530
commit87ed52d537112344ffbebd1da0eb7a230c0bdab8 (patch)
tree6f1a941d58d0fa7e81026b9408d70319c580f294
parent3dc0f0eac6814bb620dbe6de71def3400a193981 (diff)
downloadyoutube-noscript-shim-87ed52d537112344ffbebd1da0eb7a230c0bdab8.tar.gz
youtube-noscript-shim-87ed52d537112344ffbebd1da0eb7a230c0bdab8.tar.lz
youtube-noscript-shim-87ed52d537112344ffbebd1da0eb7a230c0bdab8.zip
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.
-rw-r--r--viewtube.js10
1 files changed, 0 insertions, 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"))