In Reply to: RE: to clarify, pasting the code into console won't do anything directly. posted by Rod M on March 20, 2025 at 10:07:55:
KPps. realized the server is doing something to persist the change on page reload, cookie maybe?
edit: ok, I see it seems to associate with the user log-inthis accounts for that:
function confirmRead(ReadForum, ReadThread) {
if (userID) {
if (userID != null) {
if (confirm("Are you sure you want to mark toggle - test " + ReadThread + " as read/unread?")) {
location = "/cgi/markread.mpl?forum="+ReadForum+"&thread="+ReadThread;
var anchorElement = document.querySelector('a[href*="' + ReadThread + '.html"]');var nearestLiParent = anchorElement.parentNode.closest('li');
toggleElement = nearestLiParent;toggleElement.classList.add('aa-d');
var nextSib = nearestLiParent.nextElementSibling;
if (anchorElement) {
var count = 0;
var ulChildren;
var children = nearestLiParent.nextElementSibling.querySelectorAll('*');
children = nextSib.querySelectorAll('li');for (let i = 0; i < children.length; i++) {
var toggleElement = children[i];
toggleElement.classList.add('aa-d');
}
}
}
} else {
alert("You must log in to Mark Threads as read.")
}
} else {
alert("You must log in to Mark Threads as read.")
}
}
Edits: 03/25/25
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- Sure, drop me an email and we can do a zoom share or something -t - The Killer Piglet 11:34:43 03/25/25 (0)