User:Dicklyon/Tennis cleanup JWB JSON

  • Contents of JWB-settings.JSON (when you download settings from JWB, you don't get most of these line breaks, but they're OK when you "import")
{
  "default": {
    "string":{
      "articleList":"","timelimit":"3000","sizelimit":"0","summary":"","watchPage":"nochange","skipContains":"","skipNotContains":"",
      "containFlags":"","skipCategories":"",
      "namespacelist":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15",
        "100","101","118","119","710","711","828","829","2300","2301","2302","2303"],
      "cmtitle":"","linksto-title":"","pssearch":"","titles":"","srsearch":"","smwquery":""},
    "bool":{
      "preparse":false,"minorEdit":true,"viaJWB":true,"enableRETF":false,"redir-follow":false,"redir-skip":false,"redir-edit":true,
      "skipNoChange":false,"exists-yes":false,"exists-no":true,"exists-neither":false,"containRegex":false,
      "categorymembers":false,"cmtype-page":true,"cmtype-subcg":true,"cmtype-file":true,"linksto":false,"backlinks":true,
      "embeddedin":false,"imageusage":false,"rfilter-redir":false,"rfilter-nonredir":false,"rfilter-all":true,"linksto-redir":true,
      "prefixsearch":false,"psstrict":true,"watchlistraw":false,"proplinks":false,"smwask":false},
    "replaces":[]},
  "Tennis cleanup more": {
    "string":{"articleList":"","timelimit":"3000","sizelimit":"0",
      "summary":"case cleanup","watchPage":"nochange","skipContains":"","skipNotContains":"","containFlags":"","skipCategories":"",
      "namespacelist":["0"],"cmtitle":"","linksto-title":"Template:Infobox tennis tournament event",
      "pssearch":"","titles":"","srsearch":"","smwquery":""
    },
    "bool":{
      "preparse":false,"minorEdit":true,"viaJWB":true,"enableRETF":false,"redir-follow":false,"redir-skip":false,"redir-edit":true,
      "skipNoChange":true,"exists-yes":false,"exists-no":true,"exists-neither":false,"containRegex":false,
      "categorymembers":false,"cmtype-page":true,"cmtype-subcg":true,"cmtype-file":true,"linksto":true,"backlinks":true,
      "embeddedin":true,"imageusage":false,"rfilter-redir":false,"rfilter-nonredir":true,"rfilter-all":false,"linksto-redir":true,
      "prefixsearch":false,"psstrict":true,"watchlistraw":false,"proplinks":false,"smwask":false},
    "replaces":[
      {"replaceText":" Group==",
       "replaceWith":" group==","useRegex":false,"regexFlags":"","ignoreNowiki":false},
      {"replaceText":" One==",
       "replaceWith":" one==","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Two==",
       "replaceWith":" two==","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Three==",
       "replaceWith":" three==","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Four==",
       "replaceWith":" four==","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"3rd Place Play-Off",
       "replaceWith":"Third-place playoff","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"All Comers' Finals",
       "replaceWith":"All comers' finals","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Quarterfinals",
       "replaceWith":"(quarterfinals","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Quarter-finals",
       "replaceWith":"(quarterfinals","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Semi-finals",
       "replaceWith":"(semifinals","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Quarterfinalist)",
       "replaceWith":"(quarterfinals)","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Semifinalist)",
       "replaceWith":"(semifinals)","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Semifinal",
       "replaceWith":"(semifinal","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"Fourth Place)",
       "replaceWith":"fourth place)","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"('''Champion",
        "replaceWith":"('''champion","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"the Round Robin",
       "replaceWith":"the round robin","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"Round Robin",
       "replaceWith":"Round robin","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Round",
       "replaceWith":"(round","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"the Qualifying draw",
       "replaceWith":"the qualifying draw","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"|Wild Card]]",
       "replaceWith":"|Wild card]]","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Champion",
       "replaceWith":"(champion","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Qualifying Competition",
       "replaceWith":"(qualifying competition","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Qualifying competition",
       "replaceWith":"(qualifying competition","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"'''Lucky loser'''",
       "replaceWith":"Lucky loser","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"'''Lucky Loser'''",
       "replaceWith":"Lucky loser","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Qualifying competition, Lucky loser",
       "replaceWith":"(qualifying competition, lucky loser","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Moved",
       "replaceWith":"(moved","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Qualified",
       "replaceWith":"(qualified","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Final",
       "replaceWith":"(final","useRegex":false,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"(Withdrew",
       "replaceWith":"(withdrew","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"ATP Ranking",
       "replaceWith":"ATP ranking","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"as Main Entrant",
       "replaceWith":"as main entrant","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"Lucky Loser",
       "replaceWith":"Lucky loser","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"as Lucky loser",
       "replaceWith":"as lucky loser","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"by Lucky loser",
       "replaceWith":"by lucky loser","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"by the Lucky loser",
       "replaceWith":"by the lucky loser","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"the Elimination Round",
       "replaceWith":"the elimination round","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"Main Draw Elimination Round",
       "replaceWith":"Main draw elimination round","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Round)",
       "replaceWith":" round)","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Bronze Medalist",
       "replaceWith":" bronze medalist","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Silver Medalist",
       "replaceWith":" silver medalist","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" Gold Medalist",
       "replaceWith":" gold medalist","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"'Champions Tie-break'",
       "replaceWith":"\"champions tie break\"","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"ATP Champions Race Points",
       "replaceWith":"ATP Champions Race points","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"ATP Entry Ranking Points",
       "replaceWith":"ATP Entry Ranking points","useRegex":false,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"s (Seeds|Draw)==",
       "replaceWith":"s {{subst:lc:$1}}==","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"=( *)(First|Second|Third|Fourth) Round",
       "replaceWith":"=$1$2 round","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"''\\((First|Second|Third|Fourth) Round",
       "replaceWith":"''({{subst:lc:$1}} round","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"=( *)Qualifying [Cc]ompetition",
       "replaceWith":"=$1Qualifying competition","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"==\\n==",
       "replaceWith":"==\\n\\n==","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"}}\\n==",
       "replaceWith":"}}\\n\\n==","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":" – (Doubles|Singles)''' is",
       "replaceWith":" {{subst:lc:$1}}''' was","useRegex":true,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"the ([A-Z][\\w' ]*les) title",
       "replaceWith":"the {{subst:lc:$1}} title","useRegex":true,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"the ([A-Z][\\w' ]*les) tennis title",
       "replaceWith":"the {{subst:lc:$1}} tennis title","useRegex":true,"regexFlags":"","ignoreNowiki":true},
      {"replaceText":"\\((First round|Second round|Third round|Fourth round)",
       "replaceWith":"({{subst:lc:$1}}","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"The '''(Men's|Women's|Mixed|) *(Singles|Doubles)",
       "replaceWith":"The '''{{subst:lc:$1}} {{subst:lc:$2}}","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"– (Singles|Doubles|Men's Singles|Women's Singles|Men's Doubles|Women's Doubles|Mixed Doubles|Boys' Singles|Girls' Singles|Boys' Doubles|Girls' Doubles)'''",
       "replaceWith":"{{subst:lc:$1}}'''","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"==(First|Second|Third|Fourth) Round",
       "replaceWith":"==$1 round","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"tennis match\\|([A-Z]\\w+'.*les)]]",
       "replaceWith":"tennis match|{{subst:lc:$1}}]]","useRegex":true,"regexFlags":"","ignoreNowiki":true},	 
      {"replaceText":"[M|m]ain( article)* *\\| *([\\w ]*)– (Men's|Women's|Boys'|Girls') ([A-Z][\\w ]*)}}",
       "replaceWith":"Main$1|$2– $3 {{subst:lc:$4}}}}","useRegex":true,"regexFlags":"","ignoreNowiki":true},	 
      {"replaceText":"(Top|Bottom) Half",
       "replaceWith":"$1 half","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"name( *=[\\w \\.]+– [\\w']+) ([A-Z][\\w ']+)",
       "replaceWith":"name$1 {{subst:lc:$2}}","useRegex":true,"regexFlags":"g","ignoreNowiki":true},
      {"replaceText":"\\[\\[([\\w \\.]+) – ([A-Z][\\w' ]+) ([A-Z][\\w' ]+)]]",
       "replaceWith":"[[$1 – $2 {{subst:lc:$3}}]]","useRegex":true,"regexFlags":"g","ignoreNowiki":true}
	]}
}