From 2226bc9f156afa5eed774573df9a0af076573e86 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 22 Mar 2012 13:40:13 +0000 Subject: [PATCH] hide thumbnails with given tags --- ext/index/script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ext/index/script.js diff --git a/ext/index/script.js b/ext/index/script.js new file mode 100644 index 00000000..98d997ea --- /dev/null +++ b/ext/index/script.js @@ -0,0 +1,10 @@ +$(function() { + var blocked_tags = ($.cookie("blocked-tags") || "").split(" "); + for(i in blocked_tags) { + var tag = blocked_tags[i]; + if(tag) $(".thumb[data-tags~='"+tag+"']").hide(); + } + // FIXME: need to trigger a reflow in opera, because opera implements + // text-align: justify with element margins and doesn't recalculate + // these margins when part of the line disappears... +});