Google Maps Classic

Google Maps never seems to remember my preference for Classic

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name       Google Maps Classic
// @namespace  http://compressedtime.com/
// @version    0.1
// @description  Google Maps never seems to remember my preference for Classic
// @match      http://maps.google.com/*
// @match      https://maps.google.com/*
// @match      http://www.google.com/maps*
// @match      https://www.google.com/maps*
// @copyright  2012+, You
// @run-at     document-start
// ==/UserScript==

if(typeof GM_log == 'undefined')
    GM_log = console.log;

//GM_log("typeof document.documentElement.outerHTML=" + typeof document.documentElement.outerHTML);
//GM_log("document.documentElement.outerHTML=" + document.documentElement.outerHTML);

var location = window.location.href;
if(location.match(/maps\//))
{
        // just adding output=classic to these URLs doesn't fix it
        return;
}

// XXX try to detect if we're already on classic
if(false && document.documentElement.outerHTML.match(/html class="no-maps-mini"/))
{
    /* we're already on classic */
    GM_log("Google Maps Classic: looks like we're already on classic");
}


if(!location.match(/output=classic/))
{
    window.location.href = window.location.href + '&output=classic';
}