don't try blocking empty tag
This commit is contained in:
parent
4066e6db81
commit
f4da2e92f0
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue