diff options
| author | Oskar KÄ…klewski <105233545+kaklewski@users.noreply.github.com> | 2026-05-06 17:55:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 08:55:57 -0700 |
| commit | 9996f809bbddd0abbba99c47255a8efff3e1c302 (patch) | |
| tree | b3883c46f40739fa116139cdafd49e7cf52781e3 | |
| parent | 7a43e9f3b50c828484b26f3a414b1ccc4929aa6d (diff) | |
Add option to hide event tickets (#5)
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | popup.html | 5 | ||||
| -rw-r--r-- | popup.js | 1 | ||||
| -rw-r--r-- | unhook.js | 1 |
4 files changed, 8 insertions, 0 deletions
@@ -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 @@ -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> @@ -14,6 +14,7 @@ const toggles = [ 'hideProfilePhotos', 'hideMixes', 'hideMerch', + 'hideEventTickets', 'hideVideoInfo', 'hideButtonsBar', 'hideChannel', @@ -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; }'); |
