diff --git a/output/index.css b/output/index.css index c326f81..172b3a5 100644 --- a/output/index.css +++ b/output/index.css @@ -537,12 +537,11 @@ label[for=toggle-show-room-ids]::after { transition: filter 0.15s, opacity 0.15s; } -#details-modal-community-icon:not([data-icon-safety="1"], #details-modal-community-icon-wrapper:hover > *) { +#details-modal-community-icon:not([data-icon-safety="-1"], #details-modal-community-icon-wrapper:hover > *) { opacity: 0.5; filter: blur(3px); } - #details-modal-start #details-modal-description { max-height: 50vh; overflow: auto; diff --git a/php/servers/known-servers.php b/php/servers/known-servers.php index 4bb7283..3a4369e 100644 --- a/php/servers/known-servers.php +++ b/php/servers/known-servers.php @@ -67,10 +67,12 @@ /** * @var string[] $ICON_BLOCKLIST - * These hostnames are considered to have unsafe room icons. + * These hostnames or rooms are considered to have unsafe room icons. */ $ICON_BLOCKLIST = [ - "gaohuangse.work" + "gaohuangse.work", + "46.101.253.18", + "womanbodybeauty+13f6" ]; $SERVER_ICON_MAPPING = [ diff --git a/php/utils/room-icons.php b/php/utils/room-icons.php index b3327d4..fcbcf26 100644 --- a/php/utils/room-icons.php +++ b/php/utils/room-icons.php @@ -80,6 +80,9 @@ function room_icon_safety(\CommunityRoom $room): int { global $ICON_ALLOWLIST, $ICON_BLOCKLIST; + if (in_array($room->get_room_identifier(), $ICON_BLOCKLIST)) { + return -1; + } if (in_array($room->server->get_hostname(), $ICON_ALLOWLIST)) { return 1; }