Skip to content

Commit

Permalink
Update 0.3.9 - Fixed document banner not beeing removed and css of do…
Browse files Browse the repository at this point in the history
…wnload buttons
  • Loading branch information
isanchop committed Mar 22, 2022
1 parent ab06a28 commit 61b8304
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions doc-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cloud-download-alt" class="svg-inline--fa fa-cloud-download-alt " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"></path></svg><span class="_2fbdc464604d">Descarga</span>';

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 = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cloud-download-alt" class="svg-inline--fa fa-cloud-download-alt " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"></path></svg><span class="_2fbdc464604d">Descarga</span>';

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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": [{
Expand Down
4 changes: 2 additions & 2 deletions remove-banner.js
Original file line number Diff line number Diff line change
@@ -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];
Expand Down

0 comments on commit 61b8304

Please sign in to comment.