Skip to content

Instantly share code, notes, and snippets.

@saitamanodoruji
saitamanodoruji / Endless_Summer_on_dsbd_with_Logger.user.js
Created June 17, 2012 12:46 — forked from taizooo/Endless_Summer_on_dsbd.user.js
Endless Summer on Tumblr Dashboard with Logger
// ==UserScript==
// @name Endless Summer on dsbd with Logger
// @namespace http://www.tumblr.com/
// @description random next link on tumblr dashboard
// @include http://www.tumblr.com/dashboard/1*
// @include http://www.tumblr.com/show/*/1*
// @require https://raw.github.com/gist/3242
// @require https://raw.github.com/gist/198443
// @require https://raw.github.com/gist/34615
// @version 0.0.4.0.17
@saitamanodoruji
saitamanodoruji / reblogcommand.user.js
Created June 19, 2012 17:26
ReblogCommand (sharedObject な人用)
// ==UserScript==
// @name ReblogCommand
// @namespace http://white.s151.xrea.com/
// @include http://*
// @include https://*
// @exclude http://www.tumblr.com/share
// ==/UserScript==
(function() {
@saitamanodoruji
saitamanodoruji / Scriptish_injectScripts.js.patch
Created June 20, 2012 02:09
Scriptish0.1.7 に sharedObject を持たせるためのパッチ
--- scriptish-0.1.7-sm+fn+fx/modules/utils/Scriptish_injectScripts.js 2012-01-29 19:24:24.000000000 +0900
+++ scriptish-0.1.7-sm+fn+fx_fixed/modules/utils/Scriptish_injectScripts.js 2012-04-22 18:28:33.598993000 +0900
@@ -37,7 +37,13 @@
if (0 >= scripts.length) return;
let unsafeContentWin = safeWin.wrappedJSObject;
+
+ var sharedObject = {};
+ sharedObject.window = sharedObject;
+ sharedObject.__proto__ = new XPCNativeWrapper(unsafeContentWin);
// ==UserScript==
// @id Add HatenaB Keybind
// @name Add HatenaB Keybind
// @version 0.0.1.1
// @namespace http://b.hatena.ne.jp/saitamanodoruji
// @author saitamanodoruji
// @description はてなブックマークにショートカットキーを追加する
// @include http://b.hatena.ne.jp/*
// @run-at document-end
// ==/UserScript==
// ==UserScript==
// @id Disable HatenaB Keybind
// @name Disable HatenaB Keybind
// @author snj14
// @description はてなブックマークのショートカットキーを無効化する
// @namespace http://white.s151.xrea.com
// @include http://b.hatena.ne.jp/*
// @origin http://userscripts.org/scripts/show/23317
// @version 0.0.2
// @contributer saitamanodoruji
// ==UserScript==
// @id Modify HatenaB Keybind
// @name Modify HatenaB Keybind
// @version 0.0.7
// @namespace http://b.hatena.ne.jp/saitamanodoruji
// @author saitamanodoruji
// @description はてなブックマークのショートカットキーを追加・変更する
// @include http://b.hatena.ne.jp/*
// @run-at document-end
// @compatibility Firefox 13.0.1 (Scriptish 0.1.7) on Windows XP SP3
@saitamanodoruji
saitamanodoruji / Scriptish_injectScripts.js.patch
Created October 2, 2012 14:19
Scriptish0.1.8 に sharedObject を持たせるためのパッチ
--- ./scriptish-0.1.8-sm+fx/modules/utils/Scriptish_injectScripts.js 2012-09-23 11:50:46.000000000 +0900
+++ ./scriptish-0.1.8-sm+fx_fixed2/modules/utils/Scriptish_injectScripts.js 2013-01-25 18:22:03.897773724 +0900
@@ -31,6 +31,18 @@
if (0 >= scripts.length) return;
let unsafeContentWin = safeWin.wrappedJSObject;
+
+ var sharedObject = {
+ Minibuffer: null,
+ LDRize: null,
@saitamanodoruji
saitamanodoruji / SoundCloudToTumblr.js
Created October 31, 2012 13:44
SoundCloud から Tumblr に audio ポストする tombloo パッチ
////////////////////////////////////////////////////////////////
// SoundCloud から Tumblr に audio ポストする tombloo パッチ
// SoundCloud へリンクするタイプの Audio ポストができる
// 音声ファイルつきの Audio ポストにはならない
////////////////////////////////////////////////////////////////
// ポストするとき tombloo の小窓にタイトル等が表示されない.
// quickPostForm.js を編集すると表示できるけど
// パッチからいじる方法がわからないのでそのまま.
@saitamanodoruji
saitamanodoruji / tombloo.extractor.twitter.conversation.js
Created November 21, 2012 13:19
Twitter の会話を Tumblr に Chat でポストする Tombloo パッチ
Tombloo.Service.extractors.register(
{
name: 'Conversation - Twitter',
RE: /^https?:\/\/twitter\.com\/[^\/]+(?:\/status)?/,
RE_STATUS: /^https?:\/\/twitter\.com\/[^\/]+\/status/,
ICON: 'http://twitter.com/favicon.ico',
check: function(ctx){
return this.RE.test(ctx.href);
},
extract : function (ctx) {
@saitamanodoruji
saitamanodoruji / tombloo.service.extractor.quote.hatebu.js
Last active October 13, 2015 22:08
はてブのコメントを簡単に Quote する Tombloo パッチ
// http://b.hatena.ne.jp/entry/{url} で動作する.
// 範囲選択せずにコメント上でコンテクストメニューを開けば全文 Quote.
// 範囲選択するとそこだけ Quote.
// 本文の先頭にはてな ID が入り permalink にアンカーされる.
// タグ, 日付は省略.
Tombloo.Service.extractors.register(
{
name: 'Quote - Hatena Bookmark',
RE: /^http:\/\/b\.hatena\.ne\.jp\/entry\//,
check: function(ctx){