dora! dora! dora!

    @@ -1,7 +1,7 @@ /* * @title dora! dora! dora! - * @description dora * N times/repeat on YAPC::Asia 2015 - * @include http://doraperson2015.yapcasia.org/* + * @description dora * N times/repeat on YAPC::Asia 2015 dora-person + * @include http://doraperson2015.yapcasia.org/detail/* * @contributor yuta25 http://let.hatelabo.jp/yuta25/let/hLHXtqvvo8xd (Fork of) * @license MIT License http://opensource.org/licenses/MIT * @javascript_url
  • /*
     * @title dora! dora! dora!
     * @description dora * N times/repeat on YAPC::Asia 2015 dora-person
     * @include http://doraperson2015.yapcasia.org/detail/*
     * @contributor yuta25  http://let.hatelabo.jp/yuta25/let/hLHXtqvvo8xd (Fork of)
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // $('.speech').text().trim();
    // http://doraperson2015.yapcasia.org/detail/7
    
    // e.g.
    // http://doraperson2015.yapcasia.org/detail/1
    (function() {
        var dora = document.querySelector('.vote .gong');
        function click() { dora.click(); }
    
        var times = Number(window.prompt('N times? e.g "3"')) || 3;
        var interval = 1000;
        Array.apply(null, Array(times)).forEach(function(_, idx) {
            setTimeout(function() {
                click();
            }, idx * interval);
        });
    }());
    
    // didn't work GitHub login on my env; c.f
    // http://h.hatena.ne.jp/noromanba/315970867248626581
    //  1. try GitHub login by link on http://doraperson2015.yapcasia.org/select_sns?rtn_url=/detail/1
    //   - http://doraperson2015.yapcasia.org/auth/github
    //  2. allow "Dora Person" access to public data
    //   - https://github.com/settings/applications
    //   - http://f.hatena.ne.jp/noromanba/20150609025453
    //  3. white-out auth-callback
    //   - http://doraperson2015.yapcasia.org/auth/callback.php
    //  4. infinity loops step 2-3
    //   - "Revoke" -> re-auth too
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/06/09 04:03:49 - 2015-06-09
  2. 2015/06/09 03:51:22 - 2015-06-09
  3. 2015/06/09 03:31:13 - 2015-06-09
  4. 2015/06/09 03:21:08 - 2015-06-09
  5. 2015/06/09 03:07:26 - 2015-06-09
  6. 2015/06/09 03:00:40 - 2015-06-09
  7. 2015/06/09 02:59:59 - 2015-06-09