From 8d7bcfd3602371cf510f4d5529253578a16671c6 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Wed, 16 Jun 2021 19:00:09 +0200 Subject: [PATCH] Add some tweaks to Plugin Scanner --- BetterDiscordApp/src/modules/pluginCertifier.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BetterDiscordApp/src/modules/pluginCertifier.js b/BetterDiscordApp/src/modules/pluginCertifier.js index 9448fb4..e0211af 100644 --- a/BetterDiscordApp/src/modules/pluginCertifier.js +++ b/BetterDiscordApp/src/modules/pluginCertifier.js @@ -79,6 +79,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam const scrpt = removeComment === 1 ? no_comments : data if(test.exec(scrpt)){ isHarmful = threats[type] + Utils.showToast(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type]) console.log(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type]) break } @@ -93,7 +94,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam hash: hash, filename } - + Utils.showToast(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`) console.log(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`) resultCallback(cache[hash])