From a50afc487ad3e5a647ce5c7d6d50651c7febb0cb Mon Sep 17 00:00:00 2001 From: 10Meisterbaelle Date: Thu, 13 Nov 2025 21:04:07 +0100 Subject: [PATCH] Hide package header when viewing depictions from Zebra --- depictions/web/index.html | 4 ++-- depictions/web/js/content-blocks-index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/depictions/web/index.html b/depictions/web/index.html index c194141f..64b7e9fc 100644 --- a/depictions/web/index.html +++ b/depictions/web/index.html @@ -46,8 +46,8 @@ } ); - // Set target="_blank" for links if on Cydia - if (navigator.userAgent.includes("Cydia")) { + // Set target="_blank" for links if on Cydia or Zebra + if (navigator.userAgent.includes("Cydia") || navigator.userAgent.includes("Zebra")) { $("a").attr("target", "_blank"); } diff --git a/depictions/web/js/content-blocks-index.js b/depictions/web/js/content-blocks-index.js index 860b6df6..1101c4e8 100644 --- a/depictions/web/js/content-blocks-index.js +++ b/depictions/web/js/content-blocks-index.js @@ -10,7 +10,7 @@ function getContentBlocks() { type: "custom", source: "package>name", render: (element, source) => { - if (navigator.userAgent.search(/Cydia/) === -1) { + if (navigator.userAgent.search(/Cydia/) === -1 && navigator.userAgent.search(/Zebra/) === -1) { $(element).show(); } },