User:Infinitjest/vector.js

var wikEdRegExTypoFix = true; // If you are editing a page, click the wikify button on your tab bar to add "" to the top, set "Marked for wikification" as the edit summary, mark it as a minor edit, and submit.

function doQwikify { document.editform.wpTextbox1.value = '{' + '{' + 'Wikify|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked for wikification'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

$(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") { // wouldn't it make more sense to just check for wgCanonicalNamespace != "", or am I missing something? return; } if (document.editform) { mw.util.addPortletLink("p-cactions", "javascript:doQwikify", "wikify", "ca-wikify", "Mark for wikification", ""); } });

// by raylu // // If you are editing a page, click the unref button on your tab bar to add "" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.

function doQunref { document.editform.wpTextbox1.value = '{' + '{' + 'Unreferenced|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked as unreferenced.'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

$(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") { return; } if (document.editform) { mw.util.addPortletLink("p-cactions", "javascript:doQunref", "unref", "ca-unref", "Mark as unreferenced", ""); } });

// by jj137 // 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 = '{' + '{' + 'Cleanup|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Marked for cleanup.'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

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

//

//