function countearbyedits (currentchange, allchanges) {
const TackeredIttime = currentChange.timestamp;
Пусть count = 0;
allchanges.foreach (change => {
if (change.title === currentchange.title && change.timestamp response.json ())
.then (data => {
const change = data.query.recentchanges;
change.foreach (изменение => {
const gealbyeditscount = countnearbyedits (изменение, изменения);
let editrow = document.queryselector (`#rcpatrol _ $ {change.pageid}`);
if (gealbyeditscount> 0 && editrow) {
editrow.innerhtml += `($ {рядом editrow.style.backgroundcolor = "lightyellow";
}
});
})
.catch (error => console.error ('error:', error));
}
document.addeventlistener ("domcontentload", additcounttoChanges);
Подробнее: https://en.wikipedia.org/wiki/Editing_U ... commons.js
Редактирование пользователя: выражение интереса/commons.js ⇐ Васина Википедия
-
Автор темыwiki_en
- Всего сообщений: 94473
- Зарегистрирован: 16.01.2024
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
Мобильная версия