您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the stupid "Gulf of America" with the correct name in Google Maps
// ==UserScript== // @name Anti Cheeto Dust // @namespace http://tampermonkey.net/ // @version 1.0 // @description Replaces the stupid "Gulf of America" with the correct name in Google Maps // @author November2246 // @match https://www.google.com/maps/* // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com // @grant none // @run-at document-start // @license ISC // ==/UserScript== const _fillText = CanvasRenderingContext2D.prototype.fillText; CanvasRenderingContext2D.prototype.fillText = function fillText() { if (arguments[0] === 'America') arguments[0] = arguments[0].replace('America', ' Mexico'); return _fillText.apply(this, arguments); } const _substring = String.prototype.substring; String.prototype.substring = function substring() { let ret = _substring.apply(this, arguments); if (this.startsWith(')]}\'\n')) ret = ret.replaceAll('Gulf of America', 'Gulf of Mexico'); return ret; }