stop persisting toggle of per-tag blacklist, black out blacklisted previews #2497
This commit is contained in:
@@ -38,14 +38,9 @@
|
|||||||
})[0];
|
})[0];
|
||||||
if (match) {
|
if (match) {
|
||||||
match.disabled = !match.disabled;
|
match.disabled = !match.disabled;
|
||||||
var hash = tags.hash();
|
|
||||||
if (match.disabled) {
|
if (match.disabled) {
|
||||||
if (Danbooru.Cookie.get("dab") !== "1") {
|
|
||||||
Danbooru.Cookie.put("b" + hash, "1", "session");
|
|
||||||
}
|
|
||||||
$(e.target).addClass("blacklisted-active");
|
$(e.target).addClass("blacklisted-active");
|
||||||
} else {
|
} else {
|
||||||
Danbooru.Cookie.remove("b" + hash);
|
|
||||||
$(e.target).removeClass("blacklisted-active");
|
$(e.target).removeClass("blacklisted-active");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,10 +66,6 @@
|
|||||||
item.append(" ");
|
item.append(" ");
|
||||||
item.append(count);
|
item.append(count);
|
||||||
|
|
||||||
if (Danbooru.Cookie.get("b" + hash)) {
|
|
||||||
link.click();
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#blacklist-list").append(item);
|
$("#blacklist-list").append(item);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -95,9 +86,6 @@
|
|||||||
$("#re-enable-all-blacklists").show();
|
$("#re-enable-all-blacklists").show();
|
||||||
Danbooru.Cookie.put("dab", "1");
|
Danbooru.Cookie.put("dab", "1");
|
||||||
$("#blacklist-list a:not(.blacklisted-active)").click();
|
$("#blacklist-list a:not(.blacklisted-active)").click();
|
||||||
$.each(Danbooru.Blacklist.entries, function(i, entry) {
|
|
||||||
Danbooru.Cookie.remove("b" + entry.tags.hash());
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -106,9 +94,6 @@
|
|||||||
$("#re-enable-all-blacklists").hide();
|
$("#re-enable-all-blacklists").hide();
|
||||||
Danbooru.Cookie.put("dab", "0");
|
Danbooru.Cookie.put("dab", "0");
|
||||||
$("#blacklist-list a.blacklisted-active").click();
|
$("#blacklist-list a.blacklisted-active").click();
|
||||||
$.each(Danbooru.Blacklist.entries, function(i, entry) {
|
|
||||||
Danbooru.Cookie.remove("b" + entry.tags.hash());
|
|
||||||
});
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ a.blacklisted-active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-preview.blacklisted-active, #image-container.blacklisted-active {
|
.post-preview.blacklisted-active, #image-container.blacklisted-active {
|
||||||
display: none;
|
filter: brightness(10%);
|
||||||
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-preview {
|
.post-preview {
|
||||||
|
|||||||
Reference in New Issue
Block a user