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

Jump to navigation Jump to search
m (try this)
m (try this)
link.innerText = 'diff'
link.href = row.querySelector('.mw-changeslist-title').href
;(new mw.Api).get({ action: 'query', prop: 'revisions', pageids: link.href, rvprop: 'ids', }).then(function (resp) {
console.log('page', link.href, 'history:', resp)
})
row.firstChild.replaceWith('(', link, ' | ')
});