Skip to content

Instantly share code, notes, and snippets.

@poochin
poochin / svc post fetch
Created January 26, 2013 13:33
新 dsbd の rblg に関する json データ
{
"errors": false,
"post": {
"id": null,
"two": "<p><a class=\"tumblr_blog\" href=\"http:\/\/gatinhamel.tumblr.com\/post\/41469586332\">gatinhamel<\/a>:<\/p>\n<blockquote>\n<p>(via\u00a0<a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\"><\/a><a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\"><\/a><a href=\"http:\/\/pinterest.com\/pin\/137993176052938152\/\">http:\/\/pinterest.com\/pin\/137993176052938152\/<\/a>)<\/p>\n<\/blockquote>\n\n<p><\/p>",
"three": "http:\/\/pinterest.com\/pin\/137993176052938152\/",
"state": 0,
"publish_on": false,
"type": "photo",
"format": 0,
@poochin
poochin / notification_full_image.user.js
Last active December 10, 2015 01:48
Tumblr の Notification バーが画像のサムネイルを右端に表示するようになったのを受けて、Notification バーへマウスを乗せた際に対象ポストの大きめの画像を表示するようにします。
// ==UserScript==
// @name Notification Full Image
// @match http://www.tumblr.com/dashboard
// @match http://www.tumblr.com/blog/*
// @version 1.0.0
// @description ユーザスクリプトの概要を記入してください
//
// @author poochin
// @license MIT
// @updated 1970-01-01
@poochin
poochin / tumblr_tornado_gm.user.js
Created December 15, 2012 04:49
Tumblr Tornado で API を用いれば Dashboard にいながら別アカウントに reblog したいというツイートをしたところ、API を用いれば出来るのでは、という流れになったため、試しに下書きへ投稿するスクリプトを書きました。 別垢のメインブログ、別垢のサブタンブルログへの投稿に成功。 使用するには 27 行目 〜 33 行目を自分用に書き換えてください。
// ==UserScript==
// @name Tumblr Tornado Greasemonkey
// @namespace https://github.com/poochin
// @version 1.1.15
// @description Tumblr にショートカットを追加するユーザスクリプト
// @include http://www.tumblr.com/dashboard
// @include http://www.tumblr.com/dashboard/*
// @include http://www.tumblr.com/likes
// @include http://www.tumblr.com/likes/*
// @include http://www.tumblr.com/blog/*
@poochin
poochin / notes_filter.user.js
Created December 9, 2012 06:24
dsbd で 500 以上の notes のみを表示するユーザスクリプト(Firefox でも動作するようにしました)
// ==UserScript==
// @name Notes Filter
// @match http://www.tumblr.com/dashboard*
// @version 1.0.1
// @description Dashboard フィルター(Notes Filter)
//
// @author poochin
// @license MIT
// @updated 2012-12-09
// @updateURL https://github.com/poochin/tumblrscript/
@poochin
poochin / autopagerize.user.js
Created September 22, 2012 14:49
Fx 用 AutoPagerize で先読みを早い段階で行わせるようにしたコード
// AutoPagerize
// loading next page and inserting into current page.
// http://autopagerize.net/
//
// It doesn't work in Greasemonkey any longer.
//
// this script based on
// GoogleAutoPager(http://la.ma.la/blog/diary_200506231749.htm) and
// estseek autopager(http://la.ma.la/blog/diary_200601100209.htm).
@poochin
poochin / gist:3755407
Created September 20, 2012 11:36
Dashboard を特定の post id になるまで掘り下げるブックマークレット(未入力時に自分の最新ポストまで遡るようにしました)
javascript: void function() {
var post_id;
post_id = parseInt(prompt('input post id to fall in.'));
new PeriodicalExecuter(function FallInDashboard(pe) {
var posts = $$('#posts > li.post:not(.new_post)');
exit: {
if (isNaN(post_id)) {
if ($$('.is_mine:not(.new_post)').length) {
$ ffmpeg -r 10 -f x11grab -s 1024x768 -i :0.0 -f alsa -i default -acodec libmp3lame -vcodec libx264 -vpre fast -b 220k -ar 22050 -ab 48k -threads 2 -s 640x480 -vsync 2 -y -f flv "(RTMP)/(KEY) flashver=FME/3.0\20(compatible;\20FMSc/1.0)"
@poochin
poochin / autopagerize.user.js
Created August 31, 2012 14:28
AutoPagerize の読み込みを早い時点で行わせるパッチを食わせたスクリプト
// AutoPagerize
// loading next page and inserting into current page.
// http://autopagerize.net/
//
// It doesn't work in Greasemonkey any longer.
//
// this script based on
// GoogleAutoPager(http://la.ma.la/blog/diary_200506231749.htm) and
// estseek autopager(http://la.ma.la/blog/diary_200601100209.htm).
@poochin
poochin / autopager.user.js.diff
Created August 31, 2012 14:20
AutoPagerize の先読みをより早い段階で読み込みを行うようにさせるパッチです
*** _autopagerize.user.js 2012-08-31 22:37:04.823104821 +0900
--- autopagerize.user.js 2012-08-31 23:16:49.413881873 +0900
***************
*** 52,57 ****
--- 52,60 ----
this.pageNum = 1
this.info = info
this.state = settings.disable ? 'disable' : 'enable'
+ this.loading = false
+ this.prefetch = null
@poochin
poochin / dashboard_loadian.user.js
Created June 14, 2012 15:55
Tumblr の dashboard で次ページ読み込み開始位置をずらします
// ==UserScript==
// @name Dashboard Loadian
// @match http://www.tumblr.com/dashboard*
// @version 1.0.1
// @description ダッシュボードの読み込み位置を前倒しします
//
// @author poochin
// @license MIT
// @updated 2012-06-15
// @updateURL https://gist.github.com/2931134