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

m
attempt!
m (try)
m (attempt!)
const pageid = Object.keys(resp.query.pages)[0]
const page = resp.query.pages[pageid]
const title = page.title
console.log('page', link.href, 'history:', page)
const revid = page.revisions[0].revid
if (page.revisions[0].parentid != 0) console.warn('hijynkx on page', title, ':', query)
link.href = '/wiki/'+ title +'?diff='+ revid
})
row.firstChild.replaceWith('(', link, ' | ')
40,275

edits