1
0
Fork 1

Clean up entries of filtered communities, remove offline ones

main
mdPlusPlus 1 year ago
parent 5e01d2beb8
commit 27e2626dfb

@ -22,33 +22,18 @@ import {
// Hidden communities for transparency.
const filteredCommunities = {
tests: [
"2e9345+c7fb", // TestRoom
"762ba9+c7fb", // TesterRoom
"b4d829+c7fb", // Test
"e5853a+c7fb", // testtest
"eu+8183", // temporary removal by request, not really a test
"fishing+8e2e", // Example group from PySOGS documentation
"test+118d", // Testing 1, 2, 3
"test+13f6", // Testing room
"test+c01b", // Testing room
"test+13f6", // Testing room2
"test+fe93", // 测试Test)
"xyz+7908", // XYZ Room
"xyz+efca", // XYZ Room
],
offensive: [
"60fa60+c7fb", // "N-word" Community
"ab1a4d+c7fb", // zUnsensored Group (CSAM)
"AlexMed+e093", //
"AlexMed+e093", // drug trading?
"gore+e5e0", // gore
"RU-STEROID+e093" //
"RU-STEROID+e093" // drug trading?
],
// These communities should be checked regularly
// in case they update their PySOGS version
legacy: [
"Ukraine+02bd" // https://reccacon.com/view/room/Ukraine
]
};
// This can be achieved with `text-overflow: ellipsis` instead
@ -89,7 +74,7 @@ function createJoinLinkButtons() {
function hideBadCommunities() {
let numberOfHiddenCommunities = 0;
for (const category of ['tests', 'offensive', 'legacy']) {
for (const category of ['tests', 'offensive']) {
numberOfHiddenCommunities +=
filteredCommunities[category]
.map(hideElementByID)