From f4da2e92f0b328893ca275601dc45cd1078c48b0 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 3 Jan 2024 23:57:17 +0000 Subject: [PATCH] don't try blocking empty tag --- ext/index/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/index/script.js b/ext/index/script.js index bca2a9cd..1ee59f9f 100644 --- a/ext/index/script.js +++ b/ext/index/script.js @@ -3,6 +3,7 @@ document.addEventListener('DOMContentLoaded', () => { let blocked_tags = (shm_cookie_get("ui-blocked-tags") || "").split(" "); let blocked_css = blocked_tags + .filter(tag => tag.length > 0) .map(tag => tag.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")) .map(tag => `.shm-thumb[data-tags~="${tag}"]`).join(", "); if(blocked_css) {