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

m
try that
m (++)
m (try that)
btn.addEventListener('click', function() {
// clicked
old.dispatchEvent(new Event('click'))
mw.notify('clicked!')
})
// hide old button and show new one