tumblelog undertaker

  • /*
     * @title tumblelog undertaker
     * @description kako no my dashboard ni moguru tameno bookmarklet desu.
     * @include http://*
     * @license MIT License
     */
    
    /*
     * go user archive page ( http://kagurazakaundergroundresistance.tumblr.com/archive/2007/9 )
     * click this bookmarklet!
     * goto old date dashboard
    */
    
    (function(){
      var tid = localStorage.getItem('tid');
      if (!tid) {
        tid = window.prompt('input tumblr id', '');
        localStorage.setItem('tid', tid);
      }
      var a=document.querySelectorAll('a[id^="post_"]');
      var i=a[a.length-1].href.match(/post\/(\d+)/)[1];
      location.href='http://www.tumblr.com/tumblelog/'+tid+'/999?offset='+i;
    }
    )()
    
    
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/09/16 19:40:27 - 2011-09-16
  2. 2011/09/16 19:30:59 - 2011-09-16