Content deleted Content added
sync from User:SD0001/comments in local time.js - requested on talk Tag: Reverted |
|||
Line 1:
/**
* COMMENTS IN LOCAL TIME
Line 10 ⟶ 9:
* [[Wikipedia:Comments in Local Time]]
*/
$(() => {
/**
* Given a number, add a leading zero if necessary, so that the final number
Line 504 ⟶ 503:
if (isDisabledUrl) {
return;▼
}▼
if ($content[0].querySelector('.localcomments')) {▼
return;
}
this.replaceText(
/(\d{1,2}):(\d{2}), (\d{1,2}) ([A-Z][a-z]+) (\d{4}) \(UTC\)/
);
Line 625 ⟶ 618:
}
// Check if we've already ran this script.
new CommentsInLocalTime().run();▼
if (window.commentsInLocalTimeWasRun) {
window.commentsInLocalTimeWasRun = true;
commentsInLocalTime.run();
});
|