WME Validator Localization for Ireland

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

目前為 2015-10-01 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name                WME Validator Localization for Ireland
// @version             1.1.8.6
// @author              lsin023
// @description         This script localizes WME Validator for Ireland. 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/15899
// ==/UserScript==
//
/*
  See Settings->About->Available checks for complete list of checks and their params.

  Examples:

  Enable #170 "Lowercase street name" but allow lowercase "exit" and "to":
    "170.enabled": true,
    "170.params": {
        "regexp": "/^((exit|to) )?[a-z]/",
    "},

  Enable #130 "Custom check" to find a dot in street names, but allow dots at Ramps:
    "130.enabled": true,
    "130.params": {
        "titleEN": "Street name with a dot",
        "problemEN": "There is a dot in the street name (excluding Ramps)",
        "solutionEN": "Expand the abbreviation or remove the dot",
        "template": "${type}:${street}",
        "regexp": "D/^[^4][0-9]?:.*\\./",
    },
    *Note: use D at the beginning of RegExp to enable debugging on JS console.
    *Note: do not forget to escape backslashes in strings, i.e. use "\\" instead of "\".
*/

window.WME_Validator_Ireland = {
    ".country": "Ireland",
    ".codeISO": "IE",
    ".author": "lsin023",
    ".updated": "2015-10-01",
    ".link": "TODO: ",
    "70.enabled": true,
    "70.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "71.enabled": true,
    "71.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "72.enabled": true,
    "72.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "160.enabled": true,
    "160.params": {
        "solutionEN": "Rename the street to 'Mxx' or 'Mxx N/S/W/E' or change the road type",
        "regexp": "!/^M[0-9]+( [NSWE])?$/"
    },
    "160.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "161.enabled": true,
    "161.params": {
        "solutionEN": "Rename the street to 'Nxx' or 'Nxx Local Name' or change the road type",
        "regexp": "!/^N[0-9]+( .*)?$/"
    },
    "161.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "162.enabled": true,
    "162.params": {
        "solutionEN": "Rename the street to 'Rxxx' or 'Rxxx Local Name' or change the road type",
        "regexp": "!/^R[0-9]+( .*)?$/"
    },
    "162.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Road_Types",
    "169.enabled": true,
    "169.params": {
        "solutionEN": "Rename the segment in accordance with the guidelines",
        "regexp": "!/^[a-záéíóúA-ZÁÉÍÓÚ0-9\\. '(/)-]+$/"
    },
    "169.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations",
    "170.enabled": true,
    "170.params": {
        "regexp": "/\\b(?!(?:to|s|of|na|an|penny)\\b)(?:[a-záéíóú]\\w*)\\b/"
    },
    "171.enabled": true,
    "171.params": {
        "regexp": "/\\b(?:Aly|Arc|Avenue|Bch|Bnd|Btm|Blvd|Brg?|Bdge?|Brks?|Bgs?|Byp|Cswy|Ctrs?|Cirs?|Clfs?|Close|Cors?|Court|Crk?|Cvs?|Crescent|Crs[et]|Dl|Drive|Ests?|Flds?|Gdns?|Gtwy|Gl?n|Gt|Gr[nv]?|Hvn|Hbrs?|Hls?|Hts|Hghts|Jctn|Lane|Lil|Ldg|Lower|Lr|Mnrs?|Mdws?|Mt|Orch|Ps?ge|Pde|Park|Pnes?|Place|Plns?|Plz|Please|Prts?|Private|Qy|Rename|Road|Spgs?|Squ?are|Saint|St(?!(?:\\.|$| (?:Lwr|Upr|[NSWE]|Great|Little|Middle|Arcade|Gardens|Cres)$))|St[an]|Str|Stree?t|Ter|Terr?ace|Tunl|Uppe?r?|Ur|Val|Vlys?|Vdct|Vw|Vlgs?|Wl?k|Wls?|North|East|South|West)\\b/i"
    },
    "171.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations"
};