40,275
edits
m (oop) |
m (try) |
||
const title = row.querySelector('.mw-changeslist-title')
;(new mw.Api).get({ action: 'query', prop: 'revisions', titles: title.textContent, rvprop: 'ids', }).then(function (resp) {
const pageid = Object.keys(resp.query.pages)[0]
console.log('page', link.href, 'history:', resp)▼
const page = resp.query.pages[pageid]
})
row.firstChild.replaceWith('(', link, ' | ')
|