您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script localizes WME Validator for Ireland. You also need main package (WME Validator) installed.
当前为
// ==UserScript== // @name WME Validator Localization for Ireland // @version 1.1.10.20 // @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://gf.qytechs.cn/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-11-07", ".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", "130.enabled": true, "130.params": { "titleEN": "Incorrectly abbreviated street name", "problemEN": "The street name should be abbreviated.", "solutionEN": "Rename the street in accordance with the abbreviation table", "template": "${street}", "regexp": "/(?!The).{3}\\s(?:Avenue|Close|Court|Crescent|Drive|Lane|Park|Place|Road|Square|Street|Terrace)(?:\\s+(?:Lwr|Upr|[NSWE]|Great|Little|Middle))?$/", }, "130.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations", "131.enabled": true, "131.params": { "titleEN": "Incorrect abbreviation using . (dot)", "problemEN": "Abbreviations should not end in dot, except for St. (Saint)", "solutionEN": "Remove the dot from the end of the abbreviation", "template": "${street}", "regexp": "/(?:(?!St).{2})\\./", }, "131.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations", "132.enabled": true, "132.params": { "titleEN": "Incorrect street name", "problemEN": "Cardinals N/E/S/W used as suffix should be abbreviated.", "solutionEN": "Rename the street in accordance with the abbreviation table", "template": "${street}", "regexp": "/\\s(?:North|East|South|West)$/", }, "132.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations", "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": "/(?:^|\\s)(?!(?:to|of|na|and?)\\s)(?:[a-záéíóú]\\w*)(?:$|\\s)/" }, "171.enabled": true, "171.params": { "regexp": "/(?:^|\\s)(?:Aly|Arc|Bch|Bdwy|Bnd|Btm|Blvd|Brg?|Bdge?|Brks?|Bgs?|Byp|Cswy|Ctrs?|Cirs?|Clfs?|Cors?|Cr[kt]?|Cvs?|Crs[et]|Dl|Ests?|Flds?|Gdns?|Gtwy|Gl?ns?|Gt|Gr[nv]?s?|Hvn|Hbrs?|Hls?|Hts|Hghts|Hse|Ind|Jctn|Lc?ks?|Lil|Local|Ldg|Lower|Lr|Lwn?|Mls?|Mnrs?|Mdws?|Msn|Mt|N\/A|Orch|Ps?ge|Pde|Pnes?|Plns?|Pl[sz]|Please|Prts?|Private|Qy|Rdge?s?|Rename|Spgs?|Saint|St(?!(?:\\.|$|\\s(?:Lwr|Upr|[NSWE]|Great|Little|Middle)$))|St[an]|Str|Stret|Ter|Terace|Trce|Tunl|Unknown|Uppe?r?|Ur|Val|Vlys?|Vdct|Vw|Vlgs?|Wl?k|Wls?|Works?|Xing|Xrd|Nth|Est|Sth|Wst)(?:$|\\s)/i" }, "171.problemLink": "W:How_to_label_and_name_roads_(Ireland)#Abbreviations" };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址