您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix place names in Canada (and somewhat better in rural US).
// ==UserScript== // @name Internet Road Trip: Fix Place Name // @namespace crschmidt.net/scripts/fixplacename // @match https://neal.fun/* // @version 0.3.1 // @license MIT // @author crschmidt // @description Fix place names in Canada (and somewhat better in rural US). // @require https://cdn.jsdelivr.net/npm/[email protected] // ==/UserScript== (async function() { var locationName = function() { var parts = []; if (!this.currentLocation) { return ''; } if (this.currentLocation.neighborhood) { parts.push(this.currentLocation.neighborhood); } else if (this.currentLocation.county) { parts.push(this.currentLocation.county); } if (this.currentLocation.state) { parts.push(this.currentLocation.state); } if (this.currentLocation.country != "United States") { parts.push(this.currentLocation.country); } return parts.join(", "); } console.log("Enabling crschmidt name adjuster"); (await IRF.vdom.container).state._computedWatchers.locationName.getter = locationName; })();