shannonsequitur: (Futurama - Technobabble)
Shannon the I Just Get These Headaches ([personal profile] shannonsequitur) wrote in [community profile] fancoded2023-12-03 04:31 am

(no subject)

Hello! I recently found this extremely useful Dreamwidth User Blocker script that has no name/contact info listed. Firstly, if you’re the mystery person who made this, BLESS YOU. Secondly, I would like to be able to edit the script so that it also hides replies to blacklisted comments, but I don’t know where to start. Help?
jadelennox: Senora Sabasa Garcia, by Goya (Default)

[personal profile] jadelennox 2023-12-03 10:01 pm (UTC)(link)

I'm too lacking in spoons right now to actually try this out, but in general, the idea is that you don't want to set display="none" (line 25) on the div with class poster-blockedUsername (line 21), but on the grandparent div of the discovered div with class comment-thread. I think parentElement should be treeable to get you the grandparent element, but DOM manipulation isn't something I can do when I'm out of it.

The whitelist will also be trickier to handle if you care about whitelists anywhere in thread, but you may not.

If nobody else has a better response to this and you need more of an assist than I currently have brain for, then respond to this comment tomorrow when I'll theoretically be awake and I can do a better job.

Edited (apparently too tired to write at all, sorry for the edits) 2023-12-03 22:01 (UTC)