Skip to content

Instantly share code, notes, and snippets.

@kakakaya
Created May 26, 2017 06:18
Show Gist options
  • Save kakakaya/3aa33250268cb323cafd3f3f41fad47f to your computer and use it in GitHub Desktop.
Save kakakaya/3aa33250268cb323cafd3f3f41fad47f to your computer and use it in GitHub Desktop.
MastodonでCW警告文の中に「R-18」「R18」「🔞」のいずれかが含まれてたら非表示にする
$("div.status > div.status__content > p > span").each(function() {
var html = $(this).html();
if (html.indexOf("🔞") != -1 || html.indexOf("R-18") != -1 || html.indexOf("R18") != -1) {
$(this).closest("div.status").hide();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment