Post
Topic
Board Meta
Merits 1 from 1 user
Re: Tag a user to update their broken image links
by
Igebotz
on 28/06/2024, 08:22:29 UTC
⭐ Merited by PowerGlove (1)
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.

Work like magic without any problem although the script couldn't go through locked topics but I'm very much happy with the results. got all my important images back.