Difference between revisions of "User:Fbstj/gadget/history-test.js"

m
oop
m (some)
m (oop)
const title = row.querySelector('.mw-changeslist-title')
link.href = title.href
console.log('link changing:', title, title.getAttribute('href'))
;(new mw.Api).get({ action: 'query', prop: 'revisions', titles: link.href, rvprop: 'ids', }).then(function (resp) {
console.log('page', link.href, 'history:', resp)
40,275

edits