Chapter Text
In light of the current spambot issues, I have created a site skin that prevents accidentally posting without enabling comment moderation.
Specifically, it will
- Hide the Post button until you check Enable comment moderation.
- Hide the checked option for Enable comment moderation so you can't accidentally un-check it.
- Display a reminder that says
Enable comment moderation before posting!
(This can easily be changed to whatever you want. Just find and replace this text in the code below.). - Bold and box the Enable comment moderation if not checked.
Full version
form.post.work:not(:has(#work_moderated_commenting_enabled:checked)) [value="Post" i],
.privacy:has(#work_moderated_commenting_enabled:checked) .moderated.comments {
display: none !important;
}
.privacy:not(:has(#work_moderated_commenting_enabled:checked)) ~ fieldset .actions::before {
content: "Enable comment moderation before posting!";
color: red;
background: lightyellow;
font-weight: bold;
font-style: italic;
}
.privacy .moderated:not(:has(#work_moderated_commenting_enabled:checked)) [for] {
font-weight: bold;
border: 1px solid red;
}
Short version
Really, the main functionality is in that first rule.
form.post.work:not(:has(#work_moderated_commenting_enabled:checked)) [value="Post" i],
.privacy:has(#work_moderated_commenting_enabled:checked) .moderated.comments {
display: none !important;
}
The rest is just visual reminders of what needs to be done.
