From bb582448c31671cc9eea3e1e919dc794d586d9f4 Mon Sep 17 00:00:00 2001 From: khlam <4841220+khlam@users.noreply.github.com> Date: Wed, 23 Oct 2019 18:35:36 -0700 Subject: [PATCH] logs --- renderer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/renderer.js b/renderer.js index 3eecfdc..20aaa15 100644 --- a/renderer.js +++ b/renderer.js @@ -1,4 +1,5 @@ function removeBloat(webview) { + console.log("Removing bloat") bloatList = [ 'anchor-3Z-8Bb anchorUnderlineOnHover-2ESHQB', // Remove top-right help button 'contents-18-Yxp button-3AYNKb button-2vd_v_', // Remove gift and GIF from chat @@ -7,10 +8,8 @@ function removeBloat(webview) { ] bloatList.forEach(function(tag){ webview.executeJavaScript(` - console.log("Checking for bloat tag: ${tag}") if (document.getElementsByClassName("${tag}").length !== 0){ document.getElementsByClassName("${tag}")[document.getElementsByClassName("${tag}").length - 1].remove(); - console.log("Removed bloat tag: ${tag}") } `) })