Changeset 20930

Show
Ignore:
Timestamp:
10/07/08 23:40:51 (2 months ago)
Author:
janus_wel
Message:

add "bang" property to extra object when addUserCommand (matanico.js, nicontroller.js)
change https on post message (matanico.js)
correct URL for pathtraq in function canonicalizeURL (reading.js)

Location:
lang/javascript/vimperator-plugins/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/matanico.js

    r19784 r20930  
    6767 * 
    6868 * HISTORY 
    69  *   2008/06/14 v0.10 initial written. 
    70  *   2008/06/27 v0.20 change replace argument to regexp with 'g' option. 
    71  *                    add matanico! command. 
    72  *                    refactoring 
    73  *                    display sended status if succeed. 
    74  *   2008/06/28 v0.21 change display strings, 'Yanked ' and 'Posted ' 
    75  *   2008/07/13 v0.30 change xpath function and xpath query 
    76  *   2008/07/14 v0.40 change url checking 
    77  *   2008/07/15 v0.50 make NicoScraper class 
    78  *                    add function to post tag page 
    79  *                    refer : http://nicovideo.g.hatena.ne.jp/koizuka/20080322/matanico_tag 
    80  *   2008/09/04 v0.60 add function to post related tag page 
     69 *   2008/06/14 ver. 0.10   - initial written. 
     70 *   2008/06/27 ver. 0.20   - change replace argument to regexp with 'g' option. 
     71 *                          - add matanico! command. 
     72 *                          - refactoring 
     73 *                          - display sended status if succeed. 
     74 *   2008/06/28 ver. 0.21   - change display strings, 'Yanked ' and 'Posted '. 
     75 *   2008/07/13 ver. 0.30   - change xpath function and xpath query. 
     76 *   2008/07/14 ver. 0.40   - change url checking. 
     77 *   2008/07/15 ver. 0.50   - make NicoScraper class. 
     78 *                          - add function to post tag page. 
     79 *                            refer : http://nicovideo.g.hatena.ne.jp/koizuka/20080322/matanico_tag 
     80 *   2008/09/04 ver. 0.60   - add function to post related tag page. 
     81 *   2008/10/08 ver. 0.61   - correspond vimperator specification 
     82 *                            "bang" in extra object on addUserCommand. 
    8183 * */ 
    8284 
     
    247249            // twitter's URL to post 
    248250            var domain  = 'http://twitter.com/'; 
    249             var postURL = 'http://twitter.com/statuses/update.json'; 
     251            var postURL = 'https://twitter.com/statuses/update.json'; 
    250252 
    251253            // get user account for twitter 
     
    272274    }, 
    273275    // complete logic is none. 
    274     {} 
     276    { 
     277        bang: true, 
     278    } 
    275279); 
    276280 
  • lang/javascript/vimperator-plugins/trunk/nicontroller.js

    r20436 r20930  
    55 * @description-ja  ニコニコ動画のプレーヤーをキーボードで操作できるようにする。 
    66 * @author          janus_wel <janus_wel@fb3.so-net.ne.jp> 
    7  * @version         0.51 
     7 * @version         0.52 
    88 * @minversion      1.2 
    99 * ==VimperatorPlugin== 
     
    6767 *                          - extract constant variables from code 
    6868 *                            and define in NicoPlayerController.constants. 
     69 *   2008/10/08 ver. 0.52   - correspond vimperator specification 
     70 *                            "bang" in extra object on addUserCommand. 
    6971 * */ 
    7072 
     
    474476        catch(e) { liberator.echoerr(e); } 
    475477    }, 
    476     {} 
     478    { 
     479        bang: true, 
     480    } 
    477481); 
    478482 
     
    484488        catch(e) { liberator.echoerr(e); } 
    485489    }, 
    486     {} 
     490    { 
     491        bang: true, 
     492    } 
    487493); 
    488494 
  • lang/javascript/vimperator-plugins/trunk/reading.js

    r20857 r20930  
    1 /** 
     1/* 
    22 * ==VimperatorPlugin== 
    33 * @name            reading.js 
     
    132132    }, 
    133133    // complete logic is none. 
    134     { bang: true } 
     134    { 
     135        bang:   true, 
     136    } 
    135137); 
    136138 
     
    163165 
    164166function canonicalizeURL(url) { 
    165     const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json;url='; 
     167    const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json&url='; 
    166168 
    167169    var req = new XMLHttpRequest();