From d7d40ae448db738b94f321f160434fb6833006b4 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 1 Feb 2024 17:16:13 +0100 Subject: [PATCH] add chosen not indexed coverage info --- index.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index fd7a5c8..60527d5 100644 --- a/index.js +++ b/index.js @@ -216,11 +216,13 @@ const friendlySiteName = (str) => { var rawArray = Array.from(document.querySelectorAll('script[nonce]'), (el) => el.text); var ruleNotIndexed = 'ds:11'; var ruleWarning = 'ds:13'; + var ruleCheckNotIndexed = 'ds:10'; // Isolate the right script that match rules var notIndexed = rawArray.filter((s) => s.includes(ruleNotIndexed))[1]; var warning = rawArray.filter((s) => s.includes(ruleWarning))[1]; - var script = notIndexed.concat(warning); + var checkNotIndexed = rawArray.filter((s) => s.includes(ruleCheckNotIndexed))[1]; + var script = notIndexed.concat(warning).concat(checkNotIndexed); console.log(script); // Match Report IDs @@ -464,15 +466,6 @@ const friendlySiteName = (str) => { } } } - // Add indexed summary tab if there was data fro more than 1 property - if (indexedSum) { - createExcelTab(indexedSum, workbook, `Indexed_summary_ALL`); - - // Add summary tab at the beginning - let tabs = workbook.worksheets; - let last = tabs.length - 1; - tabs[last].orderNo = 0; - } // Close Browser await browser.close();