User:Carsonl87/vector.js

// importScript('User:Δ/Copyvio Detection Candidates.js'); importScript('User:Lupin/recent2.js'); importScript("User:PleaseStand/segregate-refs.js"); importScript("User:Ohconfucius/test/EngvarB.js");	//Engvar importScript("User:Ohconfucius/test/test1.js");	//Testing new tables importScript("User:Ohconfucius/test2.js");	//Testing new sources script framework //importScript("User:Symplectic_Map/spell.js"); importScript("User:GregU/dashes.js"); mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript'); importScript("User:Ohconfucius/script/formatgeneral.js"); //no longer imported and used as a module of MOSNUMscript importScript("User:Ohconfucius/test/MOSNUM dates.js"); //User:Ohconfucius/script/MOSNUM dates.js importScript('User:Ohconfucius/script/Common Terms.js'); //User:Ohconfucius/script/Common Terms.js importScript("User:Ohconfucius/test/Sources.js"); importScript("User:Ohconfucius/test/Football_links.js"); importScript('User:Plastikspork/datetools.js'); /**** navpop ****/ // User:Lupin/popups.js importScript('User:Lupin/popups.js'); /**** dyk ****/ // User:Dr pda/prosesize.js importScript('User:Dr pda/prosesize.js'); //User:Dr pda/prosesize.js /**** afd helper ****/ document.write(' '); /* This is to keep track of who is using this extension: User:Jnothman/afd_helper/script.js */ function Ohc_edit_summary1{ //Add a tag to the summary box setoptions(minor='true'); 		//removed ",watch='false'" in response to user notification 13 Nov. 2010 setreason('script-assisted style audit, incl. dates, MOS:LINK and MOS:TEXT', 'append'); doaction('diff'); } function Ohc_edit_summary2{ // Add a tag to the summary box setoptions(minor='true'); 		//removed ",watch='false'" in response to user notification 13 Nov. 2010 setreason('script-assisted style audit, incl. English variants, dates, MOS:LINK and MOS:TEXT', 'append'); doaction('diff'); } function Ohc_insert_tag{ var txt=document.editform.wpTextbox1; // current month-year var currentDate = new Date; var currmonth = currentDate.getMonth; var curryear = currentDate.getFullYear; var myMonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); var curryyyymm = myMonths[currmonth] + ' ' + curryear; // insert 'use British English' template txt.value=txt.value.replace(/{{(use British English)(\|[^}]*)?}}/gi, ''); var rxpdd = new RegExp("", "gi"); var dflagfound = txt.value.search(rxpdd); if (dflagfound == -1) {       txt.value='\r\n'+txt.value; } } function ALL_countries { Ohc_allcountries; } function Ohc_ENGVARplus { var txt=document.editform.wpTextbox1; autoEdFunctions; //dashes Ohc_formatgeneral; Ohc_news_sources; Ohc_CommonTerms; Ohc_unambiguous; Ohc_dates_to_dmy; Ohc_delink_ISO_to_dmy; Ohc_delink_year_in_X; Ohc_ENGVARprotectwords; Ohc_ENGVARSimple; zwords; Ohc_ENGVARunprotectwords; Ohc_insert_tag; //		Ohc_flip; Ohc_edit_summary2; } function ONETOUCH_DMY{ // Add a tag to the summary box var txt=document.editform.wpTextbox1; autoEdFunctions; //dashes Ohc_formatgeneral; Ohc_news_sources; Ohc_CommonTerms; Ohc_unambiguous; Ohc_delink_ISO_to_dmy; Ohc_dates_to_dmy; Ohc_delink_year_in_X; Ohc_edit_summary1; } function ONETOUCH_MDY{ // Add a tag to the summary box var txt=document.editform.wpTextbox1; autoEdFunctions; //dashes Ohc_formatgeneral; Ohc_news_sources; Ohc_CommonTerms; Ohc_unambiguous; Ohc_delink_ISO_to_mdy; Ohc_dates_to_mdy; Ohc_delink_year_in_X; Ohc_edit_summary1; } function ONETOUCH_FOOT{ // Add a tag to the summary box var txt=document.editform.wpTextbox1; autoEdFunctions; //dashes Ohc_formatgeneral; Ohc_news_sources; Ohc_football; Ohc_CommonTerms; Ohc_unambiguous; Ohc_delink_ISO_to_dmy; Ohc_dates_to_dmy; Ohc_delink_year_in_X; Ohc_edit_summary1; } function test_protect{ // testing date protection inside image names var txt=document.editform.wpTextbox1; Ohc_protect_ISO_convert; } // Add WP:Reflinks launcher in the toolbox on left addOnloadHook(function { mw.util.addPortletLink( "p-tb",    // toolbox portlet "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + wgPageName + "?client=script&citeweb=on&overwrite=&limit=30&lang=" + wgContentLanguage, "Reflinks" // link label )}); addOnloadHook(function { if(document.forms.editform) {  mw.util.addPortletLink('p-tb', 'javascript:ONETOUCH_FOOT', 'One Touch: FOOT', 't-dmy', 'day month + CT-foot', , );  mw.util.addPortletLink('p-tb', 'javascript:ONETOUCH_DMY', 'One Touch: DMY', 't-dmy', 'day month + CT', , );  mw.util.addPortletLink('p-tb', 'javascript:ONETOUCH_MDY', 'One Touch: MDY', 't-mdy', 'month day + CT', , );  mw.util.addPortletLink('p-tb', 'javascript:ALL_countries', 'ALL countries', 't-dmy', 'unlink all countries', , );  mw.util.addPortletLink('p-tb', 'javascript:Ohc_ENGVARplus', 'ENGVAR PLUS', 't-ENGVAR', 'Engvar, DMY + CT', , );  mw.util.addPortletLink('p-tb', 'javascript:Ohc_cite_dates_to_ISO', 'CITE dates to ISO', 't-ISO', 'ISO day month', , );  mw.util.addPortletLink('p-tb', 'javascript:Ohc_access_dates_to_ISO', 'ACCESS dates to ISO', 't-ISO', 'ISO day month', , ); mw.util.addPortletLink('p-tb', 'javascript:Ohc_code_delink_dates', 'delink dates', 't-dmy', 'day month + CT', , ); mw.util.addPortletLink('p-tb', 'javascript:test_protect', 'protect dates', 't-dmy', 'day month + CT', , ); // mw.util.addPortletLink('p-tb', 'javascript:Ohc_remove_leading_zeros_from_nonlinked_dates ', 'rem leading zeros', 't-dmy', 'day month + CT', , ); } }); //