User:Gary/comments in local time.js: Difference between revisions

Content deleted Content added
Major cleanup of the code. It otherwise works the same. If something is majorly broken, then please ask an admin to undo this. For minor bugs, just post to the script's talk page.
check if already ran
Line 564:
}
}
 
// Check if we've already ran this script.
if (window.commentsInLocalTimeWasRun) {
return;
}
 
window.commentsInLocalTimeWasRun = true;
 
const commentsInLocalTime = new CommentsInLocalTime();