近辺のツイート表示

    @@ -1,6 +1,6 @@ /* * @title 近辺のツイート表示 - * @description Twitterの個別ツイート(https://twitter.com/<name>/status/<id>)前後のタイムラインを表示→【ユーザースクリプトあります】http://d.hatena.ne.jp/furyu-tei/20140327/1395914958 + * @description forked from http://let.hatelabo.jp/furyu-tei/let/hLHVnMG9q-NH * @include https://twitter.com/* * @license MIT License * @javascript_url @@ -32,7 +32,7 @@ } }; c() -})($('div.opened-tweet').attr('data-item-id'), $('div.opened-tweet').attr('data-screen-name'), parseInt($('div.opened-tweet span[data-time]').attr('data-time')), function (s, d) { - d = new Date(1000 * s); - return d.getUTCFullYear() + '-' + (1 + d.getUTCMonth()) + '-' + d.getUTCDate() +})($('#permalink-overlay-dialog .permalink-tweet').attr('data-item-id'),$('#permalink-overlay-dialog .permalink-tweet').attr('data-screen-name'),parseInt($('#permalink-overlay-dialog ._timestamp').attr('data-time')),function(s,d){ + d=new Date(1000*s); + return d.getUTCFullYear()+'-'+(1+d.getUTCMonth())+'-'+d.getUTCDate() })
  • /*
     * @title 近辺のツイート表示
     * @description forked from http://let.hatelabo.jp/furyu-tei/let/hLHVnMG9q-NH
     * @include https://twitter.com/*
     * @license MIT License
     * @javascript_url
     */
    
    // 近傍ツイート検索ブックマークレット(フル機能版)はこちら→ http://let.hatelabo.jp/furyu-tei/let/hLHV0tfq3cZU
    
    (function (i, u, s, c, q, w) {
        w = window.open('https://twitter.com/search?q=' + encodeURIComponent('from:' + u + ' since:' + c(s - 3600 * 24) + ' until:' + c(s + 3600 * 48)) + '&f=realtime');
        s = 3;
        c = function ($) {
            $ = (function () {
                try {
                    return w.$
                } catch (e) {
                    return 0
                }
            })();
            if (!$ || !(q = $("li[data-item-id='" + i + "']"))[0]) {
                if ($) $('body,html').animate({
                    scrollTop: $('li[data-item-id]:last').offset().top
                }, '0');
                if (!$ || !($('div.stream-end').is(':visible') && !(s--))) setTimeout(c, 300)
            } else {
                q.css('background', 'gold');
                $('body,html').animate({
                    scrollTop: q.offset().top - $(w).height() / 2
                }, '0')
            }
        };
        c()
    })($('#permalink-overlay-dialog .permalink-tweet').attr('data-item-id'),$('#permalink-overlay-dialog .permalink-tweet').attr('data-screen-name'),parseInt($('#permalink-overlay-dialog ._timestamp').attr('data-time')),function(s,d){
        d=new Date(1000*s);
        return d.getUTCFullYear()+'-'+(1+d.getUTCMonth())+'-'+d.getUTCDate()
    })
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/12/15 16:20:47 - 2018-12-15
  2. 2016/07/01 19:36:40 - 2016-07-01
  3. 2016/07/01 19:36:17 - 2016-07-01
  4. 2016/07/01 19:34:50 - 2016-07-01