Difference between revisions of "MediaWiki:Gadget-tag-complete-button.js"

m
tweak
m (try it now)
m (tweak)
const notice = document.querySelector('.quality-complete')
if (!notice) return;
 
// don't show button on edit
const editor = document.querySelector('.mw-editform')
if (editor) return;
// TODO: instead add a button that saves and marks as complete
 
const button = document.createElement('button')
mw.notify('Article marked as complete?')
console.warn('gadget:', 'tag-complete-button', 'tagged')
// TODO: replace button with signature/reload button section
})
})