User:CBM/tag.js

// CleanupTab.js // // This script adds a "cleanup" tab to the top of article pages // when in edit mode. It is disabled for the User namespace.

function doCleanup { document.editform.wpTextbox1.value = '{' + '{' + 'User:CBM/verifypermission}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Note: please provide info about claim of permission.'; document.editform.submit; }

addOnloadHook(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doCleanup", "cleanup", "ca-cleanup", "Mark for cleanup", "");  } });