您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script localizes WME Validator for Ohio, USA. You also need main package (WME Validator) installed.
当前为
// ==UserScript== // @name WME Validator Localization for Ohio // @namespace https://gf.qytechs.cn/en/users/9555 // @version 1.1.1.25 // @author xanderb // @description This script localizes WME Validator for Ohio, USA. 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 // ==/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_United_States = { ".country": "United States", ".codeISO": "US", ".author": "xanderb", ".updated": "2015-06-01", ".link": "TODO: ", "128.enabled": true, "128.params": { "titleEN": "Bad TTS Street name", "problemEN": "Streets that start with St and Dr result in TTS reading Street or Drive", "solutionEN": "Add a period after St or Dr at the beginning of the street name", "template": "${street}#${altStreet[#]}", "regexp": "/^([SNEW] )+(St |Dr )|^St |^Dr |Jr /" }, "128.solutionLink": "W:Abbreviations_and_acronyms#Standard_suffix_abbreviations", "129.enabled": true, "129.params": { "titleEN": "Incorrect State Highway", "problemEN": "Ohio uses SR for numbered highway names", "solutionEN": "Rename the Street or Alt Street", "template": "${state}:${street}#${altStreet[#]}", "regexp": "/Ohio:.*(Oh Hwy |State Hwy |Oh-|SH-|State Rd |SR=|State Rte |OH-|Sr-)/" }, "129.solutionLink": "W:Ohio", "130.enabled": true, "130.params": { "titleEN": "Dead-end One-Way", "ProblemEN": "You can check out anytime you like but you can never leave", "SolutionEN": "Connect another road or make Two-Way", "template": "A${deadEndA}:${direction}:B${deadEndB}:${direction}", "regexp": "/A1:[1|2]|B1:[1|2]/" }, "131.enabled": true, "131.params": { "titleEN": "Not Ohio", "problem": "The segment is assigned to another state", "solutionEN": "Make sure you are editing in OH and change it", "template": "${state}", "regexp": "!/Ohio/" }, "131.solutionLink": "W:Creating_and_editing_road_segments#Address_Properties", "132.enabled": true, "132.params": { "titleEN": "Wrong name for City or County street", "problemEN": "CS and Cs are not read correctly by TTS or County Hwy Name is wrong", "solutionEN": "Check sources and change the street's name", "template": "${state}:${street}#${altStreet[#]}", "regexp": "/Ohio:.*(Cs-|CS-|County Hwy |County Rd |Cr-|Co Rd|Ch-|T-|C-|Co Hwy |CH-|Twp Hwy |TH-)/" }, "132.solutionLink": "W:Highway_naming/USA", "133.enabled": true, "133.params": { "titleEN": "Alley not PLR", "problemEN": "Alleys should be set to the PLR Road Type", "solutionEN": "Change Road Type", "template": "${street}:${typeRank}", "regexp": "/.*(Alley| Aly):[^7]/" }, "133.solutionLink": "W:Road_types/USA#Parking_Lot_Road", "134.enabled": true, "134.params": { "titleEN": "City Name on Freeway", "problemEN": "City names on Freeway segments can cause detours", "solutionEN": "Remove the City Name", "template": "${typeRank}:${city}", "regexp": "/15:.+$/" }, "135.enabled": true, "135.params": { "titleEN": "County Route Type", "problemEN": "County Routes should be set to Primary Street minumum", "solutionEN": "Set the road type to PS or higher", "template": "${typeRank}:#${street}#${altStreet[#]}", "regexp": "/[1-9][0,6-9]:.*(CH-|CR-)/" }, "135.solutionLink": "W:Road_types/USA#Quick_reference_chart", "136.enabled": true, "136.params": { "titleEN": "Wrong road type (major)", "problemEN": "All US Highways should be at least Major Highway (except BUS, SPUR, LOOP)", "solutionEN": "Change the road type to Major Highway", "template": "${typeRank}:#${street}@#${altStreet[@#]}@", "regexp": "/^[1-9][^245]?:.*#(US Hwy |US-)[0-9]+( ALT| BYP| CONN| TRUCK| Scenic| [NSWE])*@/i" }, "136.solutionLink": "W:Road_types/USA#Major_Highway", "137.enabled": true, "137.params": { "titleEN": "Wrong road type (minor)", "problemEN": "All US BUS, SPUR, LOOP highways and State Highways (except BUS, SPUR, LOOP) should be at least Minor Highway type", "solutionEN": "Change the road type to Minor Highway", "template": "${typeRank}:#${street}@#${altStreet[@#]}@", "regexp": "/^[1-9][^2-5]:.*#((State Hwy |SR-|SH-|IL-|IN-|K-|LA-|M-|MA-|MO-|MS-|NC-|ND-|NJ-|NV-|NY-|SC-|SD-|TN-|VT-|WIS-)[0-9]+( ALT| BYP| CONN| TRUCK| Scenic| [NSWE])*|(US Hwy |US-)[0-9]+( BUS| LOOP| SPUR)+( [NSWE])?)@/i" }, "137.solutionLink": "W:Road_types/USA#Minor_Highway", "138.enabled": true, "138.params": { "titleEN": "Wrong road type (primary)", "problemEN": "All State BUS, SPUR, LOOP Highways should be at least Primary Street type", "solutionEN": "Change the road type to Primary Street", "template": "${typeRank}:#${street}@#${altStreet[@#]}@", "regexp": "/^[1-9][^1-5]:.*#(State Hwy |SR-|SH-|IL-|IN-|K-|LA-|M-|MA-|MO-|MS-|NC-|ND-|NJ-|NV-|NY-|SC-|SD-|TN-|VT-|WIS-)[0-9]+( BUS| LOOP| SPUR)+( [NSWE])?@/i" }, "138.solutionLink": "W:Road_types/USA#Primary_Street", "139.enabled": true, "139.params": { "titleEN": "Wrong banner abbreviation", "problemEN": "Banner abbreviation may be incorrect. Abbreviations ALT, BUS, BYP, CONN, LOOP, and SPUR should be in ALL CAPS", "solutionEN": "Change banner abbreviation to ALT, BUS, BYP, CONN, LOOP, SPUR, or TRUCK", "template": "${street}#${altStreet[#]}", "regexp": "/[0-9]+[A-Z]? ([Aa]lt(ernate)?|[Bb](us(iness)?|yp(ass)?)|[Cc]onn(ector)?|[Ll]oop|[Ss]pur|[Tt]ruck)/" }, "139.solutionLink": "W:Road_names/USA#United_States_Numbered_Highways", //Freeway lock "150.enabled": true, "150.params": { // {number} minimum lock level "n": 5, }, //Major Highway lock "151.enabled": true, "151.params": { // {number} minimum lock level "n": 3, }, //Minor Highway lock "152.enabled": true, "152.params": { // {number} minimum lock level "n": 3, }, //Ramp lock "153.enabled": true, "153.params": { // {number} minimum lock level "n": 2, }, //Primary Street lock "154.enabled": true, "154.params": { // {number} minimum lock level "n": 2, }, //Default US checks "27.enabled": !0, "90.enabled": !0, "106.enabled": !0, "112.enabled": !1, "170.enabled": !0, "170.params": { regexp: "/^(?!(to) [^a-z])((S|N|W|E) )?[a-z]/" }, "171.enabled": !0, "171.solutionLink": "W:Abbreviations_&_Acronyms#Standard_Suffix_Abbreviations" };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址