<->Google Maps 8-bit

    @@ -1,8 +1,15 @@ /* - * @title Google Maps 8-bit - * @include http://maps.google.* + * @title <->Google Maps 8-bit (Forked) + * @description Toggle Google Maps 8bit. Support no query or only 8bit query. + * @include http://maps.google.tld + * @include https://maps.google.tld * @license MIT License * @require + * @see http://let.hatelabo.jp/Koonies/let/gYC-xc7VqJPISw (Fork of) */ - -location.href = location.href + "&t=8"; +var eightBitPos = location.search.indexOf('t=8'); +if (eightBitPos !== -1) { + location.search = location.search.slice(0, eightBitPos -1); +} else { + location.search += '&t=8'; +}
  • /*
     * @title <->Google Maps 8-bit (Forked)
     * @description Toggle Google Maps 8bit. Support no query or only 8bit query.
     * @include http://maps.google.tld
     * @include https://maps.google.tld
     * @license MIT License
     * @require 
     * @see http://let.hatelabo.jp/Koonies/let/gYC-xc7VqJPISw (Fork of)
     */
    var eightBitPos = location.search.indexOf('t=8');
    if (eightBitPos !== -1) {
        location.search = location.search.slice(0, eightBitPos -1);
    } else {
        location.search += '&t=8';
    }
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/04/03 11:01:39 - 2012-04-03
  2. 2012/04/03 10:57:43 - 2012-04-03
  3. 2012/04/03 10:31:33 - 2012-04-03