shannonsequitur: (Futurama - Technobabble)
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?
Date/Time: 2023-12-03 22:01 (UTC)Posted by: [personal profile] jadelennox
jadelennox: Senora Sabasa Garcia, by Goya (Default)

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) Date/Time: 2023-12-03 22:01 (UTC)

Profile

Fan-Coded

January 2026

S M T W T F S
    123
45 67 8910
11121314151617
18192021222324
25262728293031

Page Summary

Expand Cut Tags

No cut tags