コード検索

  • /*
     * @title コード検索
     * @description コード検索
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    (function (d, se,sq) {
        var st = d.getSelection().toString();
        var input = function () {
            st = prompt('\u66f2\u306e\u30bf\u30a4\u30c8\u30eb\u7b49', '');
            if (st == '') {
                alert('\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f\u3002');
            }
        };
        if (st === '')
            input();
        if (st)
            location.href = se + sq + encodeURIComponent(st) + '+chords'
    })(document, 'https://www.google.co.jp/search?', 'q=');
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/12/22 13:29:01 - 2013-12-22