您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A Greasemonkey/Tampermonkey script which let you switch the interface language of Google Maps quickly.
当前为
- // ==UserScript==
- // @name Google-Maps-Language-Switcher
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description A Greasemonkey/Tampermonkey script which let you switch the interface language of Google Maps quickly.
- // @author Observer
- // @include /^https?\:\/\/www\.google\..+\/maps/
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- (function () {
- function setGetParameter(paramName, paramValue)
- {
- var url = window.location.href;
- var hash = location.hash;
- url = url.replace(hash, '');
- if (url.indexOf(paramName + "=") >= 0)
- {
- var prefix = url.substring(0, url.indexOf(paramName));
- var suffix = url.substring(url.indexOf(paramName));
- suffix = suffix.substring(suffix.indexOf("=") + 1);
- suffix = (suffix.indexOf("&") >= 0) ? suffix.substring(suffix.indexOf("&")) : "";
- url = prefix + paramName + "=" + paramValue + suffix;
- }
- else
- {
- if (url.indexOf("?") < 0)
- url += "?" + paramName + "=" + paramValue;
- else
- url += "&" + paramName + "=" + paramValue;
- }
- window.location.href = url + hash;
- }
- if (!window.location.href.match(/hl=ja/)) {
- setGetParameter("hl", "ja")
- }
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址