您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script localizes WME Validator for United States. You also need main package (WME Validator) installed.
// ==UserScript== // @name WME Validator Missouri Localization // @namespace http://tampermonkey.net/ // @version 0.4 // @description This script localizes WME Validator for United States. You also need main package (WME Validator) installed. // @match https://beta.waze.com/*editor/ // @author FastestBeef // @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": "FastestBeef", ".updated": "2017-03-31", ".lng": "EN-US", ".link": "https://gf.qytechs.cn/en/scripts/24545-wme-validator-missouri-localization", "27.enabled": true, // no city name on railroad //Freeway min lock "150.enabled": true, "150.params": { // {number} minimum lock level "n": 4, }, //MH min lock "151.enabled": true, "151.params": { // {number} minimum lock level "n": 3, }, //mH min lock "152.enabled": true, "152.params": { // {number} minimum lock level "n": 3, }, //Ramp min lock "153.enabled": false, "153.params": { // {number} minimum lock level "n": 3, }, // Primary Street min lock "154.enabled": true, "154.params": { // {number} minimum lock level "n": 2, }, "167.enabled": true, "167.solutionLink": "W:Railroad#Railroad", "167.params": { "solutionEN": "Railroad should have no name rather than 'Railroad'", "regexp": "/^Railroad$/", }, // check TTS, shamlessly stolen from xanderb "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 Jr, St, Dr, or Rev where required", "template": "${street}#${altStreet[#]}", "regexp": "/((^| )(St|Dr)(?! ((Ext|[NEWS][EW]?)\\b|\/|\\())|(Jr|Rev)) /" }, // custom check: State must be Missouri "130.enabled": true, "130.params": { // {string} expandable template "template": "${state}", // {string} regular expression to match the template "regexp": "!/^Missouri$/", // {string} check title in English "titleEN": "Wrong state selected", // {string} problem description in English "problemEN": "Selected state must be Missouri", // {string} solution instructions in English "solutionEN": "Set state to Missouri if within state limits", }, "131.enabled": true, "131.solutionLink": "W:Missouri#Major_roads", "131.params": { "titleEN": "Bad Street Name", "problemEN": "Street Name or Alt Name has been identified as incorrect. (dfa, nul, null, no street, MO-XX, SH-###)", "solutionEN": "Correct the street name, MO State Highway (MO-###) (refer to MO wiki), remove names dfa, nul, null, no street.", "template": "${state}:${street}#${altStreet[#]}#`", "regexp": "/^Missouri:.*\\b(?:dfa|nul|null|no street|(SR |CR |SH-|State Hwy |Co Rd |County Rd |County Road |Co Rte |Pvt Rd |SH )[0-9]+|(MO-|State Hwy |SH )[A-Z]+)\\b/i" }, };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址