Content deleted Content added
Ohconfucius (talk | contribs) disabling ohc_customize_all_to_mdy for test |
Ohconfucius (talk | contribs) fully protect archive-url with built-in spacces |
||
(20 intermediate revisions by the same user not shown) | |||
Line 281:
// remove parasitic metadata - days of the week/descriptives
.ohc_regex(/(\|\s*(?:publication|archive|access|air|)-?date\s*=\s*)(?:[^|}\d]*|)@Day\s+@Month\s+@YYYY(
.ohc_regex(/(\|\s*(?:publication|archive|access|air|)-?date\s*=\s*)[^|}]*@Month\s+@Day,\s+@YYYY(
//.ohc_regex(/(\|\s*date\s*=\s*)(?:[^|}–<]*\D|)@Day\s+@Month\s+@YYYY ?– ?@Day\s+@Month\s+@YYYY[^|}–<]*(?=[\s\n]*[<|}])/gi, "$1@Day1 @Mon1 @Year1 – @Day2 @Mon2 @Year2")
//.ohc_regex(/(\|\s*date\s*=\s*)[^|}–<]*@Month\s+@Day,\s+@YYYY ?– ?@Month @Day, @YYYY[^|}–<]*(?=[\s\n]*[<|}])/gi, "$1@Mon1 @Day1, @Year1 – @@Mon2 Day2, @Year2")
Line 345:
// add back spaces or comma or remove other single artefact after date string
.ohc_regex(/(\|\s*(?:publication|archive|access|air|)-?date\s*=\s*)(?:on |)@Day\s{,2}@Month\s{,2}@YYYY
.ohc_regex(/(\|\s*(?:publication|archive|access|air|)-?date\s*=\s*)(?:on |)@Month\s{,2}@Day,?\s{,2}@YYYY
// long-hand palliative for observed failure to insert spaces
.ohc_regex(/(\|\s*(?:archive|access|air)-?date\s*=\s*)(?:on |)([0-2]?\d|30|31)\s*(January|February|March|April|May|June|July|August|September|October|November|December)\s*((?:19\d|20[0-1])\d\s?)
// remove extraneous bracket //from Batty
Line 911:
.replace(/(\[(?:https?:|ftp:))([^\]]*)(\])/gi, protect_function)
.replace(/(>[ ]*(?:https?:|ftp:))([^< >\]]*)([ ]*<)/gi, protect_function)
.replace(/(\|\s*archive-?url\s*=\s*https?:|ftp:)([^\s\|]*)(\s?\|)/gi, protect_function) //repurposed unused line to protect archive url links (archive.today)
.replace(/(<blockquote>)([\s\S]*?)(<\/blockquote>)/gi, protect_function)
.replace(/(<noinclude>)([\s\S]*?)(<\/noinclude>)/gi, protect_function)
Line 1,267:
ohc_delink_ISO_to_mdy(editor);
//ohc_delink_year_in_X(editor);
ohc_ISO_to_mdy_in_citations(editor);
ohc_unprotect_dates(editor);
Line 1,355:
ohc_MOSNUM_edit_summary(editor);
}
//is this being used at all?
function ohc_ISO_to_dmy_driver(editor) {
ohc_extend_editor(editor);
Line 1,366:
//ohc_MOSNUM_edit_summary(editor);
}
//is this being used at all?
function ohc_ISO_to_mdy_driver(editor) {
ohc_extend_editor(editor);
Line 1,377:
//ohc_MOSNUM_edit_summary(editor);
}
//is this being used at all?
function ohc_delink_year_in_X_driver(editor) {
ohc_extend_editor(editor);
Line 1,383:
ohc_delink_year_in_X(editor);
}
//is this being used at all?
function ohc_expand_ref_dates_driver(editor) {
ohc_extend_editor(editor);
Line 1,392:
ohc_expand_edit_summary(editor);
}
//is this being used at all?
function ohc_expand_all_dates_driver(editor) {
ohc_extend_editor(editor);
|