Skip to content

Commit

Permalink
Update v0.5.5 - fix blured images
Browse files Browse the repository at this point in the history
  • Loading branch information
isanchop committed Dec 13, 2023
1 parent a22c006 commit 8318ff0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,

"name": "StuHack",
"version": "0.5.4",
"version": "0.5.5",
"description": "Banner remover, filter pass & document downloader",
"icons": {
"16": "img/icon16.png",
Expand Down
10 changes: 5 additions & 5 deletions remove-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ window.addEventListener('load', function(){
if(premiumButton != null){
premiumButton.parentNode.removeChild(premiumButton);
}
var banner_wrapper = document.querySelectorAll("_8690b6fc16a3,.banner-wrapper,_4d5ecd011027");
if (banner_wrapper != null) {
for (i = 0; i < banner_wrapper.length; i++) {
banner_wrapper[i].style.display = "none";
}
var banner_wrappers = Array.from(document.getElementsByClassName('banner-wrapper'));
if (banner_wrappers != null) {
banner_wrappers.forEach( (banner_wrapper) => {
banner_wrapper.parentNode.removeChild(banner_wrapper);
});
}

/* Mobile */
Expand Down
15 changes: 14 additions & 1 deletion remove-blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,17 @@ window.addEventListener('load', function(){
}
pages[i].classList.add("nofilter");
}
});

document.getElementById('viewer-wrapper').addEventListener('scroll', () => {
var bluredContainers = Array.from(document.getElementsByClassName('blurred-container'));
bluredContainers.forEach( (bluredContainer) => {
bluredContainer.firstChild.src = bluredContainer.firstChild.src.replace('/blurred/', '/');
bluredContainer.firstChild.classList.add('bi', 'x0', 'y0', 'w1', 'h1');
console.log(bluredContainer.firstChild.src);
bluredContainer.classList.remove('blurred-container');

});
});


});

0 comments on commit 8318ff0

Please sign in to comment.