From 4a62a3a0c89b1ef135c3ff8a3f3b171a62de1abf Mon Sep 17 00:00:00 2001 From: Pradeep R Prajapati <pradeepprajapati2859@gmail.com> Date: Tue, 31 Oct 2023 20:59:12 +0530 Subject: [PATCH] fix banner in printing option --- remove-banner.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/remove-banner.js b/remove-banner.js index 5bbc73f..1ae4d92 100644 --- a/remove-banner.js +++ b/remove-banner.js @@ -10,6 +10,12 @@ window.addEventListener('load', function(){ if(premiumButton != null){ premiumButton.parentNode.removeChild(premiumButton); } + var banner_wrapper = document.querySelectorAll("_8690b6fc16a3,.banner-wrapper,_4d5ecd011027"); + if (banner_wrapper != null) { + for (i = 0; i < banner_wrapper.length; i++) { + banner_wrapper[i].style.display = "none"; + } + } /* Mobile */ if (window.innerWidth <= 990){