YAKIUDON

    @@ -1,9 +1,13 @@ /* * @title YAKIUDON - * @description google search url shaper via http://let.hatelabo.jp/uneco/let/gYC-yby_yIjbcQ - * @include http://www.google.co.jp/search* - * @include https://www.google.co.jp/search* - * @license MIT License + * @description google search url shaper + * @include http://www.google.tld/search* + * @include https://www.google.tld/search* + * @include https://encrypted.google.com/search* + * @license MIT License http://opensource.org/licenses/MIT + * @contributor uneco http://let.hatelabo.jp/uneco/let/gYC-yby_yIjbcQ + * @contributor taizooo http://let.hatelabo.jp/taizooo/let/gYC-yc-IqfqdHg (Fork of) + * @author noromanba http://flavors.me/noromanba * @require */ @@ -12,12 +16,12 @@ // tbs http://d.hatena.ne.jp/ken3memo+video/20111218/1324219672 (function () { - a = (location.hash == "") ? location.search : location.hash; - a = a.substr(1).split('&'); - a = a.filter(function (e) { + var a = location.hash || location.search; + a = a.slice(1).split('&'). + filter(function (e) { return /^(?:q|tbm|tbs)/.test(e); - }); - a = a.join('&'); + }). + join('&'); a = location.pathname + '?' + a; history.pushState(null, null, a); -})() +})();
  • /*
     * @title YAKIUDON
     * @description  google search url shaper
     * @include http://www.google.tld/search*
     * @include https://www.google.tld/search*
     * @include https://encrypted.google.com/search*
     * @license MIT License   http://opensource.org/licenses/MIT
     * @contributor uneco     http://let.hatelabo.jp/uneco/let/gYC-yby_yIjbcQ
     * @contributor taizooo   http://let.hatelabo.jp/taizooo/let/gYC-yc-IqfqdHg (Fork of)
     * @author      noromanba http://flavors.me/noromanba
     * @require 
     */
    
    // tbm http://hisame72.blog133.fc2.com/blog-entry-302.html
    //  ( via http://let.hatelabo.jp/nkoz/let/gYC-ysq6-6rrGw )
    // tbs http://d.hatena.ne.jp/ken3memo+video/20111218/1324219672 
    
    (function () {
      var a = location.hash || location.search;
      a = a.slice(1).split('&').
      filter(function (e) {
        return /^(?:q|tbm|tbs)/.test(e);
      }).
      join('&');
      a = location.pathname + '?' + a;
      history.pushState(null, null, a);
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/01/14 09:36:53 - 2013-01-14
  2. 2013/01/14 09:34:52 - 2013-01-14