From e42148dc83a088085691e4f588591393660bdd7d Mon Sep 17 00:00:00 2001 From: Nacho Date: Tue, 27 Sep 2022 18:51:12 +0200 Subject: [PATCH] Update v0.4.5 - Fixed some functionality errors (download button and version button) due to web changes --- doc-viewer.js | 6 +++--- manifest.json | 2 +- version-check.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc-viewer.js b/doc-viewer.js index ef8449c..bda24bd 100644 --- a/doc-viewer.js +++ b/doc-viewer.js @@ -1,15 +1,15 @@ window.addEventListener('load', function(){ - const prev_buttons = document.getElementsByClassName("fa-cloud-download-alt"); + const prev_buttons = document.getElementsByClassName("fa-cloud-arrow-down"); if(prev_buttons.length > 0) { button1 = document.createElement("button"); button1.classList.add("download-button-1"); button1.setAttribute("id","download-button-1"); - button1.innerHTML = 'Download'; + button1.innerHTML = 'Download'; button2 = document.createElement("button"); button2.classList.add("download-button-2"); button2.setAttribute("id","download-button-2"); - button2.innerHTML = 'Download'; + button2.innerHTML = 'Download'; prev_buttons[0].parentNode.parentNode.prepend(button1); prev_buttons[1].parentNode.parentNode.removeChild(prev_buttons[1].parentNode); diff --git a/manifest.json b/manifest.json index 1266f01..c11a04b 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "StuHack", - "version": "0.4.4", + "version": "0.4.5", "description": "Banner remover, filter pass & document downloader", "icons": { "16": "img/icon16.png", diff --git a/version-check.js b/version-check.js index 3f07fe9..f7a2e0f 100644 --- a/version-check.js +++ b/version-check.js @@ -1,7 +1,7 @@ window.addEventListener('load', function(){ version = chrome.runtime.getManifest().version; - const up_buttons = document.getElementsByClassName("fa-cloud-upload-alt"); + const up_buttons = document.getElementsByClassName("fa-cloud-arrow-up"); button_cv = document.createElement("button"); button_cv.classList.add("github-button");