From c1d164eabc2aaf31e5285ad5677998be0e2ad7cb Mon Sep 17 00:00:00 2001 From: Zouga Date: Sat, 8 Feb 2025 23:36:57 +0100 Subject: [PATCH] update download button position and cell count --- downloadVSIX-V2.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/downloadVSIX-V2.js b/downloadVSIX-V2.js index 3c5c544..b78c205 100644 --- a/downloadVSIX-V2.js +++ b/downloadVSIX-V2.js @@ -73,7 +73,7 @@ for (let i = 0; i < metadataRows.length; i++) { const row = metadataRows[i]; const cells = row.querySelectorAll("td"); - if (cells.length === 2) { + if (cells.length > 1) { const key = cells[0].innerText.trim(); const value = cells[1].innerText.trim(); if (metadataMap.hasOwnProperty(key)) { @@ -83,7 +83,7 @@ } // Find the element with the class "vscode-moreinformation" - const moreInfoElement = document.querySelector(".vscode-moreinformation"); + const moreInfoElement = document.querySelector(".ms-Fabric.root-38"); if (moreInfoElement) { // Append the download button to the parent element moreInfoElement.parentElement.appendChild(extensionData.getDownloadButton()); @@ -94,7 +94,6 @@ )() }(); - /*** // Second Script: Opens the VSIX file in a new tab ***/