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

m
some
m (try again)
m (some)
const link = document.createElement('a')
link.innerText = 'diff'
link.hrefconst title = row.querySelector('.mw-changeslist-title').href
link.href = title.href
console.log('link changing:', title, title.href)
;(new mw.Api).get({ action: 'query', prop: 'revisions', titles: link.href, rvprop: 'ids', }).then(function (resp) {
console.log('page', link.href, 'history:', resp)