new new twitter autoreload for Firefox

    @@ -9,6 +9,15 @@ var script = document.createElement('script'); script.textContent = '(' + (function () { - setTimeout(function() { alert('動くよ => ' + $); }, 1000); + setTimeout(function() { + alert('準備かんりょー'); + $('title').bind('DOMSubtreeModified', function() { + setTimeout(function() { + alert('タイトル変わったよ'); + if (document.title[0] == '(') + $('.new-tweets-bar').click() + }, 300) + }) + }, 1000); }).toString() + ')();'; document.body.appendChild(script);
  • /*
     * @title new new twitter autoreload for Firefox
     * @description new new twitter autoreload for Firefox
     * @include http://twitter.com/*
     * @include https://twitter.com/*
     * @license MIT License
     * @require 
     */
    
    var script = document.createElement('script');
    script.textContent = '(' + (function () {
      setTimeout(function() {
        alert('準備かんりょー');
        $('title').bind('DOMSubtreeModified', function() {
          setTimeout(function() {
            alert('タイトル変わったよ');
            if (document.title[0] == '(')
              $('.new-tweets-bar').click()
          }, 300)
        })
      }, 1000);
    }).toString() + ')();';
    document.body.appendChild(script);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/02/16 12:25:04 - 2012-02-16
  2. 2012/02/16 12:24:01 - 2012-02-16
  3. 2012/02/16 12:22:37 - 2012-02-16
  4. 2012/02/16 12:17:44 - 2012-02-16
  5. 2012/02/16 12:16:41 - 2012-02-16
  6. 2012/02/16 12:16:14 - 2012-02-16
  7. 2012/02/16 12:15:19 - 2012-02-16
  8. 2012/02/16 12:13:51 - 2012-02-16
  9. 2012/02/16 12:13:24 - 2012-02-16
  10. 2012/02/16 12:12:17 - 2012-02-16
  11. 2012/02/16 12:10:51 - 2012-02-16
  12. 2012/02/16 12:10:00 - 2012-02-16
  13. 2012/02/16 12:09:45 - 2012-02-16