Created
May 26, 2017 06:18
-
-
Save kakakaya/3aa33250268cb323cafd3f3f41fad47f to your computer and use it in GitHub Desktop.
MastodonでCW警告文の中に「R-18」「R18」「🔞」のいずれかが含まれてたら非表示にする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("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