PDimg

    @@ -21,6 +21,6 @@ words ].join(' '); - //location.href = conf.engine + encodeURI(query); - console.info(conf.engine + encodeURI(query)); + location.href = conf.engine + encodeURI(query); + //console.info(conf.engine + encodeURI(query)); })();
  • /*
     * @title PDimg
     * @description search PD image from wikimedia.org
     * @include http://*
     * @license MIT License http://nrm.mit-license.org/2012
     * @require
     */
    
    (function () {
        var words;
        if (!(words = prompt('words?'))) return;
    
        var conf = {
            engine: 'https://encrypted.google.com/search?tbm=isch&q=',
            site:   'site:wikimedia.org'
        };
    
        var query = [
            conf.site,
            'public domain',
            words
        ].join(' ');
    
        location.href = conf.engine + encodeURI(query);
        //console.info(conf.engine + encodeURI(query));
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/12/24 23:08:02 - 2012-12-24
  2. 2012/12/24 18:48:08 - 2012-12-24
  3. 2012/12/24 17:40:28 - 2012-12-24