Post
Topic
Board Meta
Re: Tag a user to update their broken image links
by
joker_josue
on 28/06/2024, 19:30:42 UTC
Take the following recommendation with a pinch of salt (like I said, I've never run the script), but it looks to me like one way for the script (v1.6) to cope with the patch I mentioned earlier would be for line 156 to change from this:

Code: (Before)
const titleElement = postElement.querySelector('tr[class=titlebg2] td:nth-child(2) a:last-child')

To this:

Code: (After)
const titleElement = postElement.parentElement.parentElement.querySelector('tr[class=titlebg2] td:nth-child(2) a:last-child')

N.B. I'm talking about the update-everything version of the script, not the single-topic version.

Well, that's exactly what I was thinking.  I just didn't realize what had to change.

Thank you, @owerGlove for your help.