WME Validator Localization for Canada

This script localizes WME Validator for Canada. You also need main package (WME Validator) installed.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name                WME Validator Localization for Canada
// @version             1.1.7
// @description         This script localizes WME Validator for Canada. You also need main package (WME Validator) installed.
// @match               https://editor-beta.waze.com/*editor/*
// @match               https://www.waze.com/*editor/*
// @grant               none
// @run-at              document-start
// @namespace https://greasyfork.org/users/14507
// ==/UserScript==
//
 
window.WME_Validator_Canada = {
  ".country": "Canada",
  ".codeISO": "CA",
  ".author": "manoeuvre",
  ".updated": "2015-08-21",
     
  "129.enabled": true,
  "129.params": {
    "titleEN": "Wrong Abbreviation",
    "problemEN": "Street name has the wrong abbreviation",
    "solutionEN": "Use the correct abbreviation",
    "template": "${type}:${street}",
    "regexp": "/ (Aly|Avenue|Autoroute|Bnd|Boulevard|Bridge|By-pass|Carrefour|Cct|Centre|Center|Chemin|Circle|Circuit|Cl|Cmn|Concession|Cors|Court|Corners|Cr|Ct|Crescent|Croissant|Cross|Cul-de-sac|Cv|Diversion|Drive|Échangeur|Esplanade|Estates|Expressway|Expwy|Extension|Ext|Fld|Gardens|Gln|Grn|Grounds|Grv|Harbour|Harbor|Hbr|Heights|Highway|Highlands|Hl|Holw|Impasse|Inlt|Is|Knl|Landing|Limits|Ln|Lndg|Lookout|Mnr|Mdw|Mountain|Mt|Orchard|Park|Parkway|Passage|Pass|Pathway|Place|Plateau||Plz|Pnes|Point|Pkwy|Private|Promenade|Prt|Range|Rdge|Road|Rond-pont|Ruelle|Sentier|Square|Street|Subdivision|Tce|Terrace|Ter|Terrasse|Thicket|Townline|Trl|Tr|Turnabout|Village|Vlg|North|East|South|West|Xing)$/i",
  },
 
  "128.enabled": true,
  "128.params": {
    "titleEN": "St. not St",
    "problemEN": "St. not St",
    "solutionEN": "Use St. instead of St",
    "template": "${street}",
    "regexp": "^St .*/",
  },
  "150.enabled": true,
  "150.params": {
  // {number} minimum lock level
  "n": 5,
  },
  "151.enabled": true,
  "151.params": {
  // {number} minimum lock level
  "n": 4,
  },
  "152.enabled": true,  
  "152.params": {
  // {number} minimum lock level
  "n": 3,
  },
  "153.enabled": true,  
  "153.params": {
  // {number} minimum lock level
  "n": 4,
  },
  "154.enabled": true,  
  "154.params": {
  // {number} minimum lock level
  "n": 2,
  },
}