From 61b830487799be7fd4997d6ee134e96dc4a4d875 Mon Sep 17 00:00:00 2001 From: Nacho Date: Tue, 22 Mar 2022 22:07:48 +0100 Subject: [PATCH] Update 0.3.9 - Fixed document banner not beeing removed and css of download buttons --- doc-viewer.js | 10 +++++----- manifest.json | 4 ++-- remove-banner.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc-viewer.js b/doc-viewer.js index ca86270..2829940 100644 --- a/doc-viewer.js +++ b/doc-viewer.js @@ -2,15 +2,15 @@ window.addEventListener('load', function(){ const prev_buttons = document.getElementsByClassName("fa-cloud-download-alt"); button1 = document.createElement("button"); - button1.classList.add("_049074eb82bb"); - button1.classList.add("_7e30684cfe84"); + button1.classList.add("_9a6cb8147b6c"); + button1.classList.add("_692d488d692b"); button1.setAttribute("id","download-button-1"); button1.innerHTML = 'Descarga'; button2 = document.createElement("button"); - button2.classList.add("_720556e59fb1"); - button2.classList.add("_17ff4fdac00b"); - button2.classList.add("_049074eb82bb"); + button2.classList.add("_6bff635a93f8"); + button2.classList.add("_309cf73375f7"); + button2.classList.add("_9a6cb8147b6c"); button2.setAttribute("id","download-button-2"); button2.innerHTML = 'Descarga'; diff --git a/manifest.json b/manifest.json index ba115d5..6786652 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "StuHack", - "version": "0.3.8", + "version": "0.3.9", "description": "Banner remover, filter pass & document downloader", "content_scripts": [{ diff --git a/remove-banner.js b/remove-banner.js index 16c17e9..12bd27b 100644 --- a/remove-banner.js +++ b/remove-banner.js @@ -1,9 +1,9 @@ window.addEventListener('load', function(){ - var banner = document.getElementById('viewer-wrapper') + var banner = document.getElementById('document-wrapper') if(banner != null){ var banners = banner.childNodes; if (banners.length>3){ - banners[3].parentNode.removeChild(banners[3]); + banners[0].parentNode.removeChild(banners[0]); } } var premiumButton = document.getElementsByClassName("fa-star")[0];