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

Jump to navigation Jump to search
m (try that)
m (try that)
btn.addEventListener('click', function() {
// clicked
mw.notify('clicked')
old.dispatchEvent(new Event('click'))
btn.setAttribute('disabled', true)
setTimeout(function() { btn.removeAttribute('disabled') }, 5000);
})
// hide old button and show new one