Commit 7783a8a
feat(chat): Add configurable word blocking for messages
- Introduce a new "blockedwords" URL parameter and associated settings in `popup.html`.
- Implement client-side logic in `dock.html` to filter incoming chat messages and usernames against the configured list of blocked words.
- Messages or names containing blocked words are either blurred (if a blurring mode is active) or completely hidden from view.
- Provide an intuitive user interface in `popup.html` with an input field and dynamic tags for adding and removing words/phrases to be blocked.
- Develop `popup.js` functions (`updateBlockedWordsList`, `addBlockedWord`, `removeBlockedWord`, `setupBlockedWordsInput`) to manage this interactive tag system for blocked words.
- This feature enhances content moderation capabilities, giving users more control over displayed chat content.
[auto-enhanced]1 parent e794b64 commit 7783a8a
3 files changed
+139
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3160 | 3160 | | |
3161 | 3161 | | |
3162 | 3162 | | |
3163 | | - | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
3164 | 3169 | | |
3165 | 3170 | | |
3166 | 3171 | | |
| |||
8717 | 8722 | | |
8718 | 8723 | | |
8719 | 8724 | | |
| 8725 | + | |
| 8726 | + | |
| 8727 | + | |
| 8728 | + | |
| 8729 | + | |
| 8730 | + | |
| 8731 | + | |
| 8732 | + | |
| 8733 | + | |
| 8734 | + | |
| 8735 | + | |
| 8736 | + | |
| 8737 | + | |
| 8738 | + | |
| 8739 | + | |
| 8740 | + | |
8720 | 8741 | | |
8721 | 8742 | | |
8722 | 8743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1898 | 1913 | | |
1899 | 1914 | | |
1900 | 1915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1023 | 1116 | | |
1024 | 1117 | | |
1025 | 1118 | | |
| |||
2114 | 2207 | | |
2115 | 2208 | | |
2116 | 2209 | | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
2117 | 2215 | | |
2118 | 2216 | | |
2119 | 2217 | | |
| |||
5469 | 5567 | | |
5470 | 5568 | | |
5471 | 5569 | | |
5472 | | - | |
| 5570 | + | |
| 5571 | + | |
| 5572 | + | |
| 5573 | + | |
5473 | 5574 | | |
5474 | 5575 | | |
5475 | 5576 | | |
| |||
0 commit comments