aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar KÄ…klewski <105233545+kaklewski@users.noreply.github.com>2026-05-06 17:55:57 +0200
committerGitHub <noreply@github.com>2026-05-06 08:55:57 -0700
commit9996f809bbddd0abbba99c47255a8efff3e1c302 (patch)
treeb3883c46f40739fa116139cdafd49e7cf52781e3
parent7a43e9f3b50c828484b26f3a414b1ccc4929aa6d (diff)
Add option to hide event tickets (#5)
-rw-r--r--README.md1
-rw-r--r--popup.html5
-rw-r--r--popup.js1
-rw-r--r--unhook.js1
4 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 46417b4..2416882 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,7 @@ The ZIP file is also available in the [Releases](https://github.com/TheArchons/u
- Hide Profile Photos
- Hide Mixes
- Hide Merch
+- Hide Event Tickets
- Hide Video Info
- Hide Buttons Bar
- Hide Channel
diff --git a/popup.html b/popup.html
index 2845235..d479a8c 100644
--- a/popup.html
+++ b/popup.html
@@ -105,6 +105,11 @@
</label>
<label>
+ <input type="checkbox" id="hideEventTickets">
+ Hide Event Tickets
+ </label>
+
+ <label>
<input type="checkbox" id="hideVideoInfo">
Hide Video Info
</label>
diff --git a/popup.js b/popup.js
index 756d1a0..591331d 100644
--- a/popup.js
+++ b/popup.js
@@ -14,6 +14,7 @@ const toggles = [
'hideProfilePhotos',
'hideMixes',
'hideMerch',
+ 'hideEventTickets',
'hideVideoInfo',
'hideButtonsBar',
'hideChannel',
diff --git a/unhook.js b/unhook.js
index 5fe1d58..01bf246 100644
--- a/unhook.js
+++ b/unhook.js
@@ -38,6 +38,7 @@ function applyStyles(settings) {
if (settings.hideMixes) rules.push('yt-lockup-view-model:has(a[href*="list=RDMM"]), ytd-playlist-renderer:has(a[href*="list=RDMM"]) { display: none !important; }');
if (settings.hideMerch) rules.push('ytd-merch-shelf-renderer { display: none !important; }');
+ if (settings.hideEventTickets) rules.push('ytd-ticket-shelf-renderer { display: none !important; }');
if (settings.hideVideoInfo) rules.push('ytd-watch-metadata { display: none !important; }');
if (settings.hideButtonsBar) rules.push('#actions { display: none !important; }');