User:Polygnotus/DuplicateReferences.js: Difference between revisions

Content deleted Content added
move "add {{duplicated citations}}" into table, add status indicators (working/done/error)
No edit summary
Line 13:
}
 
if (
if ((mw.config.get('wgNamespaceNumber') !== 0 && mw.config.get('wgPageName') !== 'User:Polygnotus/DuplicateReferencesTest') || mw.config.get('wgAction') !== 'view') {
mw.config.get('wgAction') !== 'view' ||
debug("Not the correct page or action, script terminated");
mw.config.get('wgDiffNewId') ||
return;
mw.config.get('wgDiffOldId') ||
}
if ((mw.config.get('wgNamespaceNumber') !== 0 && mw.config.get('wgPageName') !== 'User:Polygnotus/DuplicateReferencesTest') || mw.config.get('wgAction') !== 'view') {
) {
debug("Not the correct page or action, script terminated");
return;
}
 
debug("Page title:", document.title);