Mozilla Prismでtumblr Dashboard専用ブラウザを作る - otsune tumblr まとめサイト 画像保管庫Q


Click here to lend your support to: tombloo and make a donation at www.pledgie.com ! Apture
View my page on tumblrist

ブログパーツならブログデコ!!

Greasemonkey for Mozilla Prism を使う事で

  1. Greasemonkey https://addons.mozilla.org/ja/firefox/addon/748
  2. MiniBuffer http://wescript.net/scripts/3113
  3. AutoPagerize http://wescript.net/scripts/19
  4. LDRize http://wescript.net/scripts/3111
  5. ReblogCommand http://wescript.net/scripts/3110
  6. play on tumblr http://wescript.net/scripts/3283
  7. tumblr Dashboard jk disable http://svn.coderepos.org/share/lang/javascript/userscripts/tumblr_dashboard_jk_disable.user.js

が入ったPrismクライアントが使えるようになった。

とりあえず Greasemonkey for Mozilla Prism をgitでcloneして、trunk/src/install.rdfのem:maxVersionを1.0.に書き換えてsh build.shすることでgreasemonkey_for_prism..xpiを生成しておく。

次に DOWNLOAD PRISM でPrismをダウンロードしてインストールする。

実行したらURL欄に「http://www.tumblr.com/dashboard」と入れて Okボタンでアプリを生成する。

起動したらいちばん右下の矢印アイコンからTools -> Add-Ons… を選択して、生成したgreasemonkey_for_prism.*.xpiを指定してインストールする。

あとはTools -> Greasemonkey -> Download User Script…でMiniBufferからplay on tumblrまでをインストールする。

以上でDashboard専用ブラウザが出来上がる。

ついでにwebapp.cssを使えば

  1. blockquote fix http://userstyles.org/styles/4993
  2. A smart dashboard is_mine http://userstyles.org/styles/15857

も何も入れずにCSSを書くだけで適用できる。

/Applications/tumblrDashboard.app/Contents/Resources/webapp/webapp.css


body {
/*    background: #006633 !important;
*/
}

ol#posts li blockquote {
    margin: 0 !important;
}

.autopagerize_page_info, .autopagerize_link {
    color: #fff !important;
}

#content {
    padding: 10px !important;
    border-radius: 5px !important;
    -moz-border-radius: 5px !important;
}                               

li[id][class*="is_mine"] {
    -moz-opacity:0.5 !important;
    max-height:1em !important;
    overflow:hidden !important;
}
li[id][class*="is_mine"] img {
    display:none !important;
}
li[id][class*="is_mine"] blockquote {
    display:none !important;
}

(※ http://subtech.g.hatena.ne.jp/otsune/20090611/prismTumblr にも再録しといた。Prismはwebapp.jsでユーザーJavaScriptが使えるので、その辺にぶち込むという手もありそげ)

otsune
Comments

Comments