Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 63ecea0

Browse files
committed
Update v0.5.1 - Fix: Catching errors on mobile
1 parent 6ec7890 commit 63ecea0

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33

44
"name": "StuHack",
5-
"version": "0.5.0",
5+
"version": "0.5.1",
66
"description": "Banner remover, filter pass & document downloader",
77
"icons": {
88
"16": "img/icon16.png",

remove-banner.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ window.addEventListener('load', function(){
66
banners[0].parentNode.removeChild(banners[0]);
77
}
88
}
9-
var premiumButton = document.getElementById('header-position-handle').childNodes[0].childNodes[1].childNodes[0].childNodes[1];
10-
premiumButton.parentNode.removeChild(premiumButton);
9+
var premiumButton = document.getElementById('header-position-handle')?.childNodes[0]?.childNodes[1]?.childNodes[0]?.childNodes[1];
10+
if(premiumButton != null){
11+
premiumButton.parentNode.removeChild(premiumButton);
12+
}
1113

1214
/* Mobile */
1315
if (window.innerWidth <= 990){

version-check.js

Lines changed: 17 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)